From: Mikko Rasa Date: Wed, 16 Mar 2022 10:07:17 +0000 (+0200) Subject: Select the correct physical device for Vulkan context X-Git-Url: http://git.tdb.fi/?a=commitdiff_plain;h=6e46970b67a6b53d13db97aaf6ea7690e8774c83;p=libs%2Fgui.git Select the correct physical device for Vulkan context --- 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)