aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorAndy Nichols <nezticle@gmail.com>2024-04-22 15:34:32 +0200
committerAndy Nichols <nezticle@gmail.com>2024-04-25 18:55:24 +0200
commit976ae9553e286924a98e313b55b593592a56373a (patch)
treeb75c2116e4b3c2318b23ff36d09bb5c6731352c8 /src
parent2fc45188c9344ee54205ffc34401c05cdc678c07 (diff)
Use the Default SG Render context on visionOS
Change-Id: I0a47a5df8694eef612190b3eb35a98629c100f49 Reviewed-by: Tor Arne Vestbø <tor.arne.vestbo@qt.io>
Diffstat (limited to 'src')
-rw-r--r--src/quick/scenegraph/qsgcontextplugin.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/quick/scenegraph/qsgcontextplugin.cpp b/src/quick/scenegraph/qsgcontextplugin.cpp
index e21f2fbb6f..8026f68eb4 100644
--- a/src/quick/scenegraph/qsgcontextplugin.cpp
+++ b/src/quick/scenegraph/qsgcontextplugin.cpp
@@ -103,7 +103,7 @@ QSGAdaptationBackendData *contextFactory()
// caused by run time hocus pocus. If one wants to use the software backend
// in a GL or Vulkan capable Qt build (or on Windows or Apple platforms), it
// has to be requested explicitly.
-#if !QT_CONFIG(opengl) && !QT_CONFIG(vulkan) && !defined(Q_OS_WIN) && !defined(Q_OS_MACOS) && !defined(Q_OS_IOS)
+#if !QT_CONFIG(opengl) && !QT_CONFIG(vulkan) && !QT_CONFIG(metal) && !defined(Q_OS_WIN)
if (requestedBackend.isEmpty())
requestedBackend = QLatin1String("software");
#endif