From 072a174e6b6e143aba6e109eb375139d14e1f305 Mon Sep 17 00:00:00 2001 From: Sascha Willems Date: Fri, 29 Mar 2019 08:50:17 +0100 Subject: [PATCH] Resource cleanup --- .../negativeviewportheight/negativeviewportheight.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/examples/negativeviewportheight/negativeviewportheight.cpp b/examples/negativeviewportheight/negativeviewportheight.cpp index 771fd7c7..3d6d3bfe 100644 --- a/examples/negativeviewportheight/negativeviewportheight.cpp +++ b/examples/negativeviewportheight/negativeviewportheight.cpp @@ -54,6 +54,13 @@ public: vks::Buffer verticesYDown; vks::Buffer indicesCCW; vks::Buffer indicesCW; + void destroy() + { + verticesYUp.destroy(); + verticesYDown.destroy(); + indicesCCW.destroy(); + indicesCW.destroy(); + } } quad; VulkanExample() : VulkanExampleBase(ENABLE_VALIDATION) @@ -71,6 +78,7 @@ public: vkDestroyDescriptorSetLayout(device, descriptorSetLayout, nullptr); textures.CW.destroy(); textures.CCW.destroy(); + quad.destroy(); } void buildCommandBuffers()