demos/tests: Stop calling vkFreeDescriptorSets on pools with usage ONE_SHOT
authorCody Northrop <cody@lunarg.com>
Thu, 8 Oct 2015 17:38:24 +0000 (11:38 -0600)
committerCody Northrop <cody@lunarg.com>
Thu, 8 Oct 2015 19:12:14 +0000 (13:12 -0600)
demos/cube.c
demos/tri.c

index f1b3eee..d3fb6d8 100644 (file)
@@ -1740,7 +1740,6 @@ static void demo_cleanup(struct demo *demo)
     for (i = 0; i < DEMO_BUFFER_COUNT; i++) {
         vkDestroyFramebuffer(demo->device, demo->framebuffers[i]);
     }
-    vkFreeDescriptorSets(demo->device, demo->desc_pool, 1, &demo->desc_set);
     vkDestroyDescriptorPool(demo->device, demo->desc_pool);
 
     vkDestroyPipeline(demo->device, demo->pipeline);
index 71942b0..bec0a70 100644 (file)
@@ -2104,7 +2104,6 @@ static void demo_cleanup(struct demo *demo)
     for (i = 0; i < DEMO_BUFFER_COUNT; i++) {
         vkDestroyFramebuffer(demo->device, demo->framebuffers[i]);
     }
-    vkFreeDescriptorSets(demo->device, demo->desc_pool, 1, &demo->desc_set);
     vkDestroyDescriptorPool(demo->device, demo->desc_pool);
 
     if (demo->setup_cmd) {