diff options
author | Laszlo Agocs <laszlo.agocs@qt.io> | 2021-03-19 16:40:31 +0100 |
---|---|---|
committer | Qt Cherry-pick Bot <cherrypick_bot@qt-project.org> | 2021-03-20 00:41:26 +0000 |
commit | a6cfdca7bd97f750bc034ec772f8c42c5458a0ac (patch) | |
tree | 2adcc0bed60905005cc2d5ae2c17c378f374de9b /src/quick/items/qquickwindow.cpp | |
parent | 4ae76406515cb61b56f7a8c97529ce65bf21952b (diff) |
Clean up QSGRhiSupport wrt static functions
Make static everything that can be static. At the same time, make
configure() non-static. Does not change behavior in any way, but
this is the more logical approach. Also more future proof.
Change-Id: I601d59a0547106802f330a7551a97186cde481e0
Reviewed-by: Christian Strømme <christian.stromme@qt.io>
(cherry picked from commit fb8ba3f7250f837dd29600d30108ba6f4470a727)
Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
Diffstat (limited to 'src/quick/items/qquickwindow.cpp')
-rw-r--r-- | src/quick/items/qquickwindow.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/quick/items/qquickwindow.cpp b/src/quick/items/qquickwindow.cpp index a3d8b5eacb..697e5b3410 100644 --- a/src/quick/items/qquickwindow.cpp +++ b/src/quick/items/qquickwindow.cpp @@ -3665,7 +3665,7 @@ void QQuickWindow::setGraphicsApi(QSGRendererInterface::GraphicsApi api) // Standard case: tell the QRhi-based default adaptation what graphics api // (QRhi backend) to use. if (QSGRendererInterface::isApiRhiBased(api) || api == QSGRendererInterface::Unknown) - QSGRhiSupport::configure(api); + QSGRhiSupport::instance_internal()->configure(api); } /*! |