diff options
author | Laszlo Agocs <laszlo.agocs@qt.io> | 2019-12-11 14:49:26 +0100 |
---|---|---|
committer | Laszlo Agocs <laszlo.agocs@qt.io> | 2019-12-11 15:06:10 +0100 |
commit | 20b3979c14e6437398cf56d2e6878751a5009677 (patch) | |
tree | 85044e824762a80bf03a3bed743f1693c47e428c /src/quick/scenegraph | |
parent | d9fe0f3667e940f5313dbdb94f8247125106ee0d (diff) |
rhi: Mark window as unused when needed
This is a bit more convoluted, but boils down to no-opengl + no-vulkan.
Task-number: QTBUG-80692
Change-Id: I508116721ae8ea5013546f20ac89b67929305b52
Reviewed-by: Liang Qi <liang.qi@qt.io>
Diffstat (limited to 'src/quick/scenegraph')
-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 62806236b6..e2945879b1 100644 --- a/src/quick/scenegraph/qsgrhisupport.cpp +++ b/src/quick/scenegraph/qsgrhisupport.cpp @@ -463,6 +463,10 @@ QOffscreenSurface *QSGRhiSupport::maybeCreateOffscreenSurface(QWindow *window) // must be called on the render thread QRhi *QSGRhiSupport::createRhi(QWindow *window, QOffscreenSurface *offscreenSurface) { +#if !QT_CONFIG(opengl) && !QT_CONFIG(vulkan) + Q_UNUSED(window); +#endif + QRhi *rhi = nullptr; QRhi::Flags flags = 0; |