diff options
author | Rafał Mikrut <mikrutrafal@protonmail.com> | 2021-03-07 15:28:47 +0100 |
---|---|---|
committer | Rafał Mikrut <mikrutrafal@protonmail.com> | 2021-03-07 15:28:47 +0100 |
commit | f9d0ea9f6b6651bb2ae9d70524c6aaf295644e50 (patch) | |
tree | 457b4e840ca6816a2cacbc569d67dec6c4a1dbab | |
parent | afd0df79215c260f3b9a9544e5ca1b606f4365c0 (diff) |
Fix memory leak in VulkanContext
-rw-r--r-- | drivers/vulkan/vulkan_context.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/vulkan/vulkan_context.cpp b/drivers/vulkan/vulkan_context.cpp index c564cee757..ad740efec4 100644 --- a/drivers/vulkan/vulkan_context.cpp +++ b/drivers/vulkan/vulkan_context.cpp @@ -1705,7 +1705,7 @@ VulkanContext::~VulkanContext() { vkDestroySemaphore(device, image_ownership_semaphores[i], nullptr); } } - if (inst_initialized && use_validation_layers) { + if (inst_initialized && enabled_debug_utils) { DestroyDebugUtilsMessengerEXT(inst, dbg_messenger, nullptr); } vkDestroyDevice(device, nullptr); |