summaryrefslogtreecommitdiffstats
path: root/tests/manual/rhi/texuploads
diff options
context:
space:
mode:
authorTor Arne Vestbø <tor.arne.vestbo@qt.io>2024-03-18 21:55:12 +0100
committerTor Arne Vestbø <tor.arne.vestbo@qt.io>2024-03-19 14:52:48 +0100
commit14ec2ab89fa3347f95170d6980a6c793b7f37424 (patch)
tree88686ff27beffaa7f98a0639777a51ab36cbd05e /tests/manual/rhi/texuploads
parente8e029e2a5573eecd7358cd5ed66afa89debb306 (diff)
Add configure feature for Metal
Simplifies maintenance of code paths that rely on Metal. Change-Id: I1d1f705fffc14dbafde346eeb555b43be6d5be54 Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
Diffstat (limited to 'tests/manual/rhi/texuploads')
-rw-r--r--tests/manual/rhi/texuploads/texuploads.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/manual/rhi/texuploads/texuploads.cpp b/tests/manual/rhi/texuploads/texuploads.cpp
index 69bad50a6b..5723d19be9 100644
--- a/tests/manual/rhi/texuploads/texuploads.cpp
+++ b/tests/manual/rhi/texuploads/texuploads.cpp
@@ -192,7 +192,7 @@ void Window::customRender()
if (d.testStage == 6) {
const QRhiTexture::NativeTexture nativeTexture = d.tex->nativeTexture();
if (nativeTexture.object) {
-#if defined(Q_OS_MACOS) || defined(Q_OS_IOS)
+#if QT_CONFIG(metal)
if (graphicsApi == Metal) {
qDebug() << "Metal texture: " << nativeTexture.object;
// Now could cast to id<MTLTexture> and do something with