aboutsummaryrefslogtreecommitdiffstats
path: root/examples/quick/scenegraph/fboitem/main.cpp
diff options
context:
space:
mode:
authorLaszlo Agocs <laszlo.agocs@qt.io>2020-06-11 15:50:55 +0200
committerLaszlo Agocs <laszlo.agocs@qt.io>2020-06-12 12:24:10 +0200
commit69c7ed97c2dde8b45cc29d08eb4568dc08fcd00a (patch)
tree7f9457795b9a8c6701187d4d311583e872c26984 /examples/quick/scenegraph/fboitem/main.cpp
parent26c6d776783902e75148d67936cb0c382befd7ef (diff)
fboitem example: Request OpenGL explicitly
It wouldn't render otherwise. Change-Id: I185459f2eccdffac4f7d7968e48aab4141e0908c Reviewed-by: Christian Strømme <christian.stromme@qt.io>
Diffstat (limited to 'examples/quick/scenegraph/fboitem/main.cpp')
-rw-r--r--examples/quick/scenegraph/fboitem/main.cpp2
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"));