client: search for libvulkan.so.1 as first choice

this aligns the libvulkan lookup with qxcb, which too looks for .so.1
first and .so second. linux distributions often put the .so in separate
development packages that aren't installed by default.

See also 888b75aa12e2cf35ee760bcf5cb1ed60fe0c0770 in qtbase.

Pick-to: 6.9 6.8
Change-Id: I0639896b09df89a96696554f16b3ca4d06035ac0
Reviewed-by: Liang Qi <liang.qi@qt.io>
This commit is contained in:
Harald Sitter 2025-02-25 10:34:00 +01:00 committed by Liang Qi
parent 71fc85f594
commit 0d11ab87ca

View File

@ -13,7 +13,7 @@ namespace QtWaylandClient {
QWaylandVulkanInstance::QWaylandVulkanInstance(QVulkanInstance *instance)
: m_instance(instance)
{
loadVulkanLibrary(QStringLiteral("vulkan"));
loadVulkanLibrary(QStringLiteral("vulkan"), 1);
}
QWaylandVulkanInstance::~QWaylandVulkanInstance() = default;