From 3980a9d6d4af54627ef2f024eb2436aa65a6113b Mon Sep 17 00:00:00 2001 From: BearOso Date: Thu, 13 Jun 2024 15:56:04 -0500 Subject: [PATCH] Vulkan: Fix inverted logic. --- vulkan/vulkan_context.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vulkan/vulkan_context.cpp b/vulkan/vulkan_context.cpp index 90a337ea..3fee38a2 100644 --- a/vulkan/vulkan_context.cpp +++ b/vulkan/vulkan_context.cpp @@ -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) {