From fc4e9037253bbb6e8845d5833a2e3c6c3abc039e Mon Sep 17 00:00:00 2001 From: saschawillems Date: Tue, 7 Feb 2017 20:49:22 +0100 Subject: [PATCH] Destroy Vulkan resources (Refs #277) --- computecullandlod/computecullandlod.cpp | 1 + computenbody/computenbody.cpp | 1 + 2 files changed, 2 insertions(+) diff --git a/computecullandlod/computecullandlod.cpp b/computecullandlod/computecullandlod.cpp index 6509f364..9da59087 100644 --- a/computecullandlod/computecullandlod.cpp +++ b/computecullandlod/computecullandlod.cpp @@ -147,6 +147,7 @@ public: vkDestroyPipeline(device, compute.pipeline, nullptr); vkDestroyFence(device, compute.fence, nullptr); vkDestroyCommandPool(device, compute.commandPool, nullptr); + vkDestroySemaphore(device, compute.semaphore, nullptr); } void reBuildCommandBuffers() diff --git a/computenbody/computenbody.cpp b/computenbody/computenbody.cpp index a48fb692..a83176cf 100644 --- a/computenbody/computenbody.cpp +++ b/computenbody/computenbody.cpp @@ -106,6 +106,7 @@ public: ~VulkanExample() { // Graphics + graphics.uniformBuffer.destroy(); vkDestroyPipeline(device, graphics.pipeline, nullptr); vkDestroyPipelineLayout(device, graphics.pipelineLayout, nullptr); vkDestroyDescriptorSetLayout(device, graphics.descriptorSetLayout, nullptr);