VulkanDevice: Fix double unload

This commit is contained in:
Stenzek 2024-05-15 20:31:04 +10:00
parent d9b83d69eb
commit 7abcdf2b59
No known key found for this signature in database
1 changed files with 0 additions and 1 deletions

View File

@ -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)