summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRafał Mikrut <mikrutrafal@protonmail.com>2021-03-07 15:28:47 +0100
committerRafał Mikrut <mikrutrafal@protonmail.com>2021-03-07 15:28:47 +0100
commitf9d0ea9f6b6651bb2ae9d70524c6aaf295644e50 (patch)
tree457b4e840ca6816a2cacbc569d67dec6c4a1dbab
parentafd0df79215c260f3b9a9544e5ca1b606f4365c0 (diff)
Fix memory leak in VulkanContext
-rw-r--r--drivers/vulkan/vulkan_context.cpp2
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);