瀏覽代碼

Fixes leaks with Vulkan device and instance

qarmin 5 年之前
父節點
當前提交
2ab4b054e0
共有 1 個文件被更改,包括 2 次插入0 次删除
  1. 2 0
      drivers/vulkan/vulkan_context.cpp

+ 2 - 0
drivers/vulkan/vulkan_context.cpp

@@ -1503,4 +1503,6 @@ VulkanContext::~VulkanContext() {
 	if (queue_props) {
 		free(queue_props);
 	}
+	vkDestroyDevice(device, nullptr);
+	vkDestroyInstance(inst, nullptr);
 }