summaryrefslogtreecommitdiffstats
path: root/examples
diff options
context:
space:
mode:
Diffstat (limited to 'examples')
-rw-r--r--examples/qt3d/scene2d/main.cpp2
-rw-r--r--examples/qt3d/scene3d/main.cpp2
2 files changed, 2 insertions, 2 deletions
diff --git a/examples/qt3d/scene2d/main.cpp b/examples/qt3d/scene2d/main.cpp
index d4e2c4b1d..4981ae2fd 100644
--- a/examples/qt3d/scene2d/main.cpp
+++ b/examples/qt3d/scene2d/main.cpp
@@ -55,7 +55,7 @@ int main(int argc, char **argv)
{
QGuiApplication app(argc, argv);
- QQuickWindow::setSceneGraphBackend(QSGRendererInterface::OpenGLRhi);
+ QQuickWindow::setGraphicsApi(QSGRendererInterface::OpenGLRhi);
Qt3DExtras::Quick::Qt3DQuickWindow view;
view.setSource(QUrl("qrc:/main.qml"));
view.resize(1400, 1100);
diff --git a/examples/qt3d/scene3d/main.cpp b/examples/qt3d/scene3d/main.cpp
index 67eaadb4d..11d07c024 100644
--- a/examples/qt3d/scene3d/main.cpp
+++ b/examples/qt3d/scene3d/main.cpp
@@ -70,7 +70,7 @@ int main(int argc, char **argv)
QGuiApplication app(argc, argv);
// Force OpenGL backend
- QQuickWindow::setSceneGraphBackend(QSGRendererInterface::OpenGLRhi);
+ QQuickWindow::setGraphicsApi(QSGRendererInterface::OpenGLRhi);
QQuickView view;
view.resize(1024, 768);