From 7abcdf2b5992b432d7543d3e5028c029af1eaa88 Mon Sep 17 00:00:00 2001 From: Stenzek Date: Wed, 15 May 2024 20:31:04 +1000 Subject: [PATCH] VulkanDevice: Fix double unload --- src/util/vulkan_device.cpp | 1 - 1 file changed, 1 deletion(-) diff --git a/src/util/vulkan_device.cpp b/src/util/vulkan_device.cpp index 191f0d2c0..b967925c4 100644 --- a/src/util/vulkan_device.cpp +++ b/src/util/vulkan_device.cpp @@ -1847,7 +1847,6 @@ GPUDevice::AdapterAndModeList VulkanDevice::StaticGetAdapterAndModeList() { if (Vulkan::LoadVulkanLibrary(nullptr)) { - ScopedGuard lib_guard([]() { Vulkan::UnloadVulkanLibrary(); }); OptionalExtensions oe = {}; const VkInstance instance = CreateVulkanInstance(WindowInfo(), &oe, false, false); if (instance != VK_NULL_HANDLE)