diff options
author | Kai Köhne <kai.koehne@qt.io> | 2022-02-09 15:20:57 +0100 |
---|---|---|
committer | Kai Koehne <kai.koehne@qt.io> | 2022-02-14 11:38:10 +0000 |
commit | e2138561df3562c19000af24d43659090c19167a (patch) | |
tree | 000be8c7801ab10368a2ad06a9b71b696d39afad /examples/quick/scenegraph/metalunderqml/main.cpp | |
parent | 3bb7cf64994c3b43243b6d000d051f99fdaae03e (diff) |
Use QSGRendererInterface::OpenGL in documentation and examples
QSGRendererInterface::OpenGLRhi is only an (undocumented) alias to
...::OpenGL, so let's use that instead.
Amends 0b2311a62b25c
Pick-to: 6.2 6.3
Change-Id: I4acdd39dc1d9b75bed5c474667a43b4ad86e7f47
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
Diffstat (limited to 'examples/quick/scenegraph/metalunderqml/main.cpp')
-rw-r--r-- | examples/quick/scenegraph/metalunderqml/main.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/quick/scenegraph/metalunderqml/main.cpp b/examples/quick/scenegraph/metalunderqml/main.cpp index b08f692ded..8914a012e6 100644 --- a/examples/quick/scenegraph/metalunderqml/main.cpp +++ b/examples/quick/scenegraph/metalunderqml/main.cpp @@ -56,7 +56,7 @@ int main(int argc, char **argv) { QGuiApplication app(argc, argv); - QQuickWindow::setGraphicsApi(QSGRendererInterface::MetalRhi); + QQuickWindow::setGraphicsApi(QSGRendererInterface::Metal); QQuickView view; view.setResizeMode(QQuickView::SizeRootObjectToView); |