rhi: metal: Fix a leftover version check
Pick-to: 6.6 Change-Id: I907d4d312f03658d6f04a626a7df96f7e2b4955a Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org> Reviewed-by: Andy Nichols <andy.nichols@qt.io>
This commit is contained in:
parent
67f1c360b6
commit
dbaa4fd082
@ -3748,11 +3748,11 @@ bool QMetalTexture::create()
|
||||
desc.textureType = isArray ? MTLTextureType1DArray : MTLTextureType1D;
|
||||
} else if (isArray) {
|
||||
#ifdef Q_OS_IOS
|
||||
if (samples > 1) {
|
||||
// would be available on iOS 14.0+ but cannot test for that with a 13 SDK
|
||||
qWarning("Multisample 2D texture array is not supported on iOS");
|
||||
if (@available(iOS 14, *)) {
|
||||
desc.textureType = samples > 1 ? MTLTextureType2DMultisampleArray : MTLTextureType2DArray;
|
||||
} else {
|
||||
desc.textureType = MTLTextureType2DArray;
|
||||
}
|
||||
desc.textureType = MTLTextureType2DArray;
|
||||
#else
|
||||
desc.textureType = samples > 1 ? MTLTextureType2DMultisampleArray : MTLTextureType2DArray;
|
||||
#endif
|
||||
|
Loading…
Reference in New Issue
Block a user