diff options
author | Laszlo Agocs <laszlo.agocs@qt.io> | 2020-06-11 15:50:55 +0200 |
---|---|---|
committer | Laszlo Agocs <laszlo.agocs@qt.io> | 2020-06-12 12:24:10 +0200 |
commit | 69c7ed97c2dde8b45cc29d08eb4568dc08fcd00a (patch) | |
tree | 7f9457795b9a8c6701187d4d311583e872c26984 | |
parent | 26c6d776783902e75148d67936cb0c382befd7ef (diff) |
fboitem example: Request OpenGL explicitly
It wouldn't render otherwise.
Change-Id: I185459f2eccdffac4f7d7968e48aab4141e0908c
Reviewed-by: Christian Strømme <christian.stromme@qt.io>
-rw-r--r-- | examples/quick/scenegraph/fboitem/main.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/examples/quick/scenegraph/fboitem/main.cpp b/examples/quick/scenegraph/fboitem/main.cpp index 153bd931ec..5c4620c5b7 100644 --- a/examples/quick/scenegraph/fboitem/main.cpp +++ b/examples/quick/scenegraph/fboitem/main.cpp @@ -58,6 +58,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/fboitem/main.qml")); |