Free vulkan surface

This commit is contained in:
2023-09-27 03:12:11 +02:00
parent 3ffbaea37b
commit 1d8a7d7755
2 changed files with 3 additions and 1 deletions

View File

@@ -43,6 +43,7 @@ namespace openVulkanoCpp::Vulkan
swapChainRenderPass.Close();
swapChain.Close();
deviceManager.Close();
vkDestroySurfaceKHR(static_cast<VkInstance>(instance), surface, nullptr);
//TODO
if (enableValidationLayer) Debug::CloseValidationLayers(instance);