rhi: Fix instance API version when only 1.1 is supported
Looks like something inherited from the Qt Quick code that got moved into the helper. Setting a request of API version 1.2 is harmless in practice, but to be correct the version should be 1.1 when 1.2 and newer are not reported by the instance. Change-Id: I62d2c143972d6753e4311c6907ccf846ae0e9088 Pick-to: 6.4 Reviewed-by: Andy Nichols <andy.nichols@qt.io>
This commit is contained in:
parent
e38956e4f7
commit
73fe9a786c
@ -57,7 +57,7 @@ QVulkanInstance *QVulkanDefaultInstance::instance()
|
||||
else if (supportedVersion >= QVersionNumber(1, 2))
|
||||
s_vulkanInstance->setApiVersion(QVersionNumber(1, 2));
|
||||
else if (supportedVersion >= QVersionNumber(1, 1))
|
||||
s_vulkanInstance->setApiVersion(QVersionNumber(1, 2));
|
||||
s_vulkanInstance->setApiVersion(QVersionNumber(1, 1));
|
||||
qCDebug(lcGuiVk) << "QVulkanDefaultInstance: Creating Vulkan instance"
|
||||
<< "Requesting Vulkan API" << s_vulkanInstance->apiVersion()
|
||||
<< "Instance-level version was reported as" << supportedVersion;
|
||||
|
Loading…
Reference in New Issue
Block a user