From 6e46970b67a6b53d13db97aaf6ea7690e8774c83 Mon Sep 17 00:00:00 2001 From: Mikko Rasa Date: Wed, 16 Mar 2022 12:07:17 +0200 Subject: [PATCH] Select the correct physical device for Vulkan context --- source/graphics/vkxlib/vulkancontext.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/source/graphics/vkxlib/vulkancontext.cpp b/source/graphics/vkxlib/vulkancontext.cpp index 8e253e1..51a623b 100644 --- a/source/graphics/vkxlib/vulkancontext.cpp +++ b/source/graphics/vkxlib/vulkancontext.cpp @@ -176,7 +176,10 @@ void VulkanContext::platform_init(const VulkanOptions &opts) continue; if(supported) - priv->physical_device = phys_devices[0]; + { + priv->physical_device = phys_device; + break; + } } if(!priv->physical_device) -- 2.45.2