From c53adfc4bb7f49135cec130ddfb1a25844467a23 Mon Sep 17 00:00:00 2001 From: Courtney Goeltzenleuchter Date: Wed, 25 Feb 2015 12:48:19 -0700 Subject: demos: Bug fix: Unbind image object --- demos/tri.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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]); } -- cgit v1.2.3