VulkanDevice: Fix manual device selection

This commit is contained in:
Stenzek 2025-05-27 16:14:54 +10:00
parent 1c54047cd1
commit d885446672
No known key found for this signature in database

View File

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