rhi: metal: Fix a leftover version check
Change-Id: I907d4d312f03658d6f04a626a7df96f7e2b4955a Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org> Reviewed-by: Andy Nichols <andy.nichols@qt.io> (cherry picked from commit dbaa4fd082cdf37a8fccee047113ed65a67c6c4c) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
This commit is contained in:
parent
0997715cf8
commit
2ef4694c0a
@ -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;
|
||||
}
|
||||
#else
|
||||
desc.textureType = samples > 1 ? MTLTextureType2DMultisampleArray : MTLTextureType2DArray;
|
||||
#endif
|
||||
|
Loading…
x
Reference in New Issue
Block a user