aboutsummaryrefslogtreecommitdiffstats
path: root/examples/quick/scenegraph/metaltextureimport/main.cpp
diff options
context:
space:
mode:
authorKai Köhne <kai.koehne@qt.io>2022-02-09 15:20:57 +0100
committerKai Koehne <kai.koehne@qt.io>2022-02-14 11:38:10 +0000
commite2138561df3562c19000af24d43659090c19167a (patch)
tree000be8c7801ab10368a2ad06a9b71b696d39afad /examples/quick/scenegraph/metaltextureimport/main.cpp
parent3bb7cf64994c3b43243b6d000d051f99fdaae03e (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/metaltextureimport/main.cpp')
-rw-r--r--examples/quick/scenegraph/metaltextureimport/main.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/quick/scenegraph/metaltextureimport/main.cpp b/examples/quick/scenegraph/metaltextureimport/main.cpp
index 2abc1c5671..9fb9d9ba12 100644
--- a/examples/quick/scenegraph/metaltextureimport/main.cpp
+++ b/examples/quick/scenegraph/metaltextureimport/main.cpp
@@ -54,7 +54,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);