aboutsummaryrefslogtreecommitdiffstats
path: root/src/quick/scenegraph/qsgrhisupport.cpp
diff options
context:
space:
mode:
authorLaszlo Agocs <laszlo.agocs@qt.io>2020-12-04 12:58:50 +0100
committerLaszlo Agocs <laszlo.agocs@qt.io>2020-12-07 11:31:12 +0100
commitb0f49c89780c7a1ce90b2c4e161bbba0d0beb868 (patch)
treeb5d2dfd0eac0a85d84b06a8d58ef3338d4f2bda5 /src/quick/scenegraph/qsgrhisupport.cpp
parentf9ed1ea3c3b49a01a1c2eb51d1b094a94966eb16 (diff)
Avoid unused parameter in QSGRhiSupport in certain configs
Pick-to: 6.0 Fixes: QTBUG-88604 Change-Id: Id84faf648656993777f780e147917151ce05d3e0 Reviewed-by: Andy Nichols <andy.nichols@qt.io>
Diffstat (limited to 'src/quick/scenegraph/qsgrhisupport.cpp')
-rw-r--r--src/quick/scenegraph/qsgrhisupport.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/quick/scenegraph/qsgrhisupport.cpp b/src/quick/scenegraph/qsgrhisupport.cpp
index 8fb657e44b..5b64642ce3 100644
--- a/src/quick/scenegraph/qsgrhisupport.cpp
+++ b/src/quick/scenegraph/qsgrhisupport.cpp
@@ -566,6 +566,10 @@ void QSGRhiSupport::prepareWindowForRhi(QQuickWindow *window)
// must be called on the render thread
QRhi *QSGRhiSupport::createRhi(QQuickWindow *window, QOffscreenSurface *offscreenSurface)
{
+#if !QT_CONFIG(opengl) && !QT_CONFIG(vulkan) && !defined(Q_OS_WIN) && !defined(Q_OS_MACOS) && !defined(Q_OS_IOS)
+ Q_UNUSED(window);
+#endif
+
QRhi *rhi = nullptr;
QRhi::Flags flags;