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 Reviewed-by: Andy Nichols <andy.nichols@qt.io> (cherry picked from commit 73fe9a786c119a5763ae0ce9dd0575c088e0f29b) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
This commit is contained in:
parent
39911a21b2
commit
a5619e19f9
@ -55,7 +55,7 @@ QVulkanInstance *QVulkanDefaultInstance::instance()
|
||||
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…
x
Reference in New Issue
Block a user