VulkanDevice: Fix double unload
This commit is contained in:
parent
d9b83d69eb
commit
7abcdf2b59
|
@ -1847,7 +1847,6 @@ GPUDevice::AdapterAndModeList VulkanDevice::StaticGetAdapterAndModeList()
|
||||||
{
|
{
|
||||||
if (Vulkan::LoadVulkanLibrary(nullptr))
|
if (Vulkan::LoadVulkanLibrary(nullptr))
|
||||||
{
|
{
|
||||||
ScopedGuard lib_guard([]() { Vulkan::UnloadVulkanLibrary(); });
|
|
||||||
OptionalExtensions oe = {};
|
OptionalExtensions oe = {};
|
||||||
const VkInstance instance = CreateVulkanInstance(WindowInfo(), &oe, false, false);
|
const VkInstance instance = CreateVulkanInstance(WindowInfo(), &oe, false, false);
|
||||||
if (instance != VK_NULL_HANDLE)
|
if (instance != VK_NULL_HANDLE)
|
||||||
|
|
Loading…
Reference in New Issue