diff options
Diffstat (limited to 'examples/quick')
-rw-r--r-- | examples/quick/scenegraph/openglunderqml/main.cpp | 2 | ||||
-rw-r--r-- | examples/quick/scenegraph/openglunderqml/squircle.cpp | 4 |
2 files changed, 2 insertions, 4 deletions
diff --git a/examples/quick/scenegraph/openglunderqml/main.cpp b/examples/quick/scenegraph/openglunderqml/main.cpp index 4ca8d05f1c..c151af179e 100644 --- a/examples/quick/scenegraph/openglunderqml/main.cpp +++ b/examples/quick/scenegraph/openglunderqml/main.cpp @@ -59,6 +59,8 @@ int main(int argc, char **argv) { QGuiApplication app(argc, argv); + QQuickWindow::setSceneGraphBackend(QSGRendererInterface::OpenGLRhi); + QQuickView view; view.setResizeMode(QQuickView::SizeRootObjectToView); view.setSource(QUrl("qrc:///scenegraph/openglunderqml/main.qml")); diff --git a/examples/quick/scenegraph/openglunderqml/squircle.cpp b/examples/quick/scenegraph/openglunderqml/squircle.cpp index 1c4563baa5..d80309cbfb 100644 --- a/examples/quick/scenegraph/openglunderqml/squircle.cpp +++ b/examples/quick/scenegraph/openglunderqml/squircle.cpp @@ -202,10 +202,6 @@ void SquircleRenderer::paint() m_program->disableAttributeArray(0); m_program->release(); - // Not strictly needed for this example, but generally useful for when - // mixing with raw OpenGL. - m_window->resetOpenGLState(); - m_window->endExternalCommands(); } //! [5] |