Vulkan: Fix inverted logic.
This commit is contained in:
parent
5c78493f4e
commit
3980a9d6d4
@ -233,7 +233,7 @@ bool Context::init_device(int preferred_device)
|
||||
physical_device = device_list[preferred_device];
|
||||
}
|
||||
|
||||
if (physical_device != nullptr)
|
||||
if (physical_device == nullptr)
|
||||
{
|
||||
for (auto &device : device_list)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user