From d8854466726653b105291115f9e4d61a419320a8 Mon Sep 17 00:00:00 2001 From: Stenzek Date: Tue, 27 May 2025 16:14:54 +1000 Subject: [PATCH] VulkanDevice: Fix manual device selection --- src/util/vulkan_device.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/util/vulkan_device.cpp b/src/util/vulkan_device.cpp index 00d8a6f36..d05a79743 100644 --- a/src/util/vulkan_device.cpp +++ b/src/util/vulkan_device.cpp @@ -2056,7 +2056,7 @@ bool VulkanDevice::CreateDeviceAndMainSwapChain(std::string_view adapter, Featur } } - if (m_physical_device == VK_NULL_HANDLE) + if (physical_device == VK_NULL_HANDLE) { WARNING_LOG("Requested GPU '{}' not found, using first ({})", adapter, gpus[0].second.name); physical_device = gpus[0].first;