cube: Removed some #if 0's that had bee left in the code.
authorIan Elliott <ian@LunarG.com>
Wed, 21 Oct 2015 19:50:31 +0000 (13:50 -0600)
committerIan Elliott <ian@lunarg.com>
Tue, 27 Oct 2015 16:35:50 +0000 (10:35 -0600)
demos/cube.c

index 8acd7af..6637bce 100644 (file)
@@ -1882,9 +1882,6 @@ static void demo_resize(struct demo *demo)
         vkFreeMemory(demo->device, demo->textures[i].mem);
         vkDestroySampler(demo->device, demo->textures[i].sampler);
     }
-#if 0
-    demo->fpDestroySwapchainKHR(demo->device, demo->swapchain);
-#endif
 
     vkDestroyImageView(demo->device, demo->depth.view);
     vkDestroyImage(demo->device, demo->depth.image);
@@ -1899,16 +1896,6 @@ static void demo_resize(struct demo *demo)
     }
     free(demo->buffers);
 
-#if 0
-    free(demo->queue_props);
-
-    vkDestroyCommandPool(demo->device, demo->cmd_pool);
-    vkDestroyDevice(demo->device);
-    if (demo->validate) {
-        demo->dbgDestroyMsgCallback(demo->inst, demo->msg_callback);
-    }
-#endif
-
 
     // Second, re-perform the demo_prepare() function, which will re-create the
     // swapchain: