aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--demos/cube.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/demos/cube.c b/demos/cube.c
index e49ab0b4..a336ee2f 100644
--- a/demos/cube.c
+++ b/demos/cube.c
@@ -1843,9 +1843,6 @@ static void demo_resize(struct demo *demo)
vkDestroyCommandPool(demo->device, demo->cmd_pool, NULL);
free(demo->buffers);
- vkDestroyCommandPool(demo->device, demo->cmd_pool, NULL);
-
-
// Second, re-perform the demo_prepare() function, which will re-create the
// swapchain:
demo_prepare(demo);