diff options
| -rw-r--r-- | demos/tri.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/demos/tri.c b/demos/tri.c index ffebfe89..1eca9b6e 100644 --- a/demos/tri.c +++ b/demos/tri.c @@ -602,8 +602,8 @@ static void demo_prepare_texture_image(struct demo *demo, static void demo_destroy_texture_image(struct demo *demo, struct texture_object *tex_obj) { /* clean up staging resources */ - vkFreeMemory(demo->device, tex_obj->mem); vkDestroyObject(demo->device, VK_OBJECT_TYPE_IMAGE, tex_obj->image); + vkFreeMemory(demo->device, tex_obj->mem); } static void demo_prepare_textures(struct demo *demo) |
