demos: remove mem references before destroying
authorCourtney Goeltzenleuchter <courtney@LunarG.com>
Tue, 21 Apr 2015 15:30:03 +0000 (09:30 -0600)
committerCourtney Goeltzenleuchter <courtney@LunarG.com>
Wed, 22 Apr 2015 16:48:24 +0000 (10:48 -0600)
commit876629f092977a81cae0f2d483c8b6838bdd54c4
tree6c7d2d37d7d63ef9c8b5c2be2b74906c486a3e74
parentbb1f360c47e6276bb9c3ba0c304b2a95cf9ac9de
demos: remove mem references before destroying

Need to do the staging texture destroy after removing
references to avoid referencing freed memory.
demos/cube.c
demos/tri.c