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);