aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCourtney Goeltzenleuchter <courtney@LunarG.com>2015-02-25 12:48:19 -0700
committerCourtney Goeltzenleuchter <courtney@LunarG.com>2015-02-25 17:15:47 -0700
commitc53adfc4bb7f49135cec130ddfb1a25844467a23 (patch)
tree60dc1be0ae7de2301c9d6d88803a2faf5103dc45
parent02ba99a09a6138b0c7e8735e405a608b0a24df14 (diff)
downloadusermoji-c53adfc4bb7f49135cec130ddfb1a25844467a23.tar.xz
demos: Bug fix: Unbind image object
-rw-r--r--demos/tri.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/demos/tri.c b/demos/tri.c
index b10037ac..fb8281ca 100644
--- a/demos/tri.c
+++ b/demos/tri.c
@@ -510,7 +510,7 @@ static void demo_destroy_texture_image(struct texture_objects *tex_objs)
{
/* clean up staging resources */
for (uint32_t j = 0; j < tex_objs->num_mem; j ++) {
- xglBindObjectMemory(tex_objs->mem[j], j, XGL_NULL_HANDLE, 0);
+ xglBindObjectMemory(tex_objs->image, j, XGL_NULL_HANDLE, 0);
xglFreeMemory(tex_objs->mem[j]);
}