From 38d2db78e6b93f6be5b6385986c3b9498fa8c305 Mon Sep 17 00:00:00 2001 From: Courtney Goeltzenleuchter Date: Wed, 25 Feb 2015 12:48:19 -0700 Subject: [PATCH] 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 b10037a..fb8281c 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]); } -- 2.7.4