diff options
author | Laszlo Agocs <laszlo.agocs@qt.io> | 2020-12-04 12:58:50 +0100 |
---|---|---|
committer | Laszlo Agocs <laszlo.agocs@qt.io> | 2020-12-07 11:31:12 +0100 |
commit | b0f49c89780c7a1ce90b2c4e161bbba0d0beb868 (patch) | |
tree | b5d2dfd0eac0a85d84b06a8d58ef3338d4f2bda5 /src/quick/scenegraph/qsgrhisupport.cpp | |
parent | f9ed1ea3c3b49a01a1c2eb51d1b094a94966eb16 (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.cpp | 4 |
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; |