summaryrefslogtreecommitdiffstats
path: root/examples/qt3d/simplecustommaterial/main.cpp
diff options
context:
space:
mode:
authorMike Krus <mike.krus@kdab.com>2020-06-19 20:25:20 +0100
committerMike Krus <mike.krus@kdab.com>2020-06-25 07:19:28 +0100
commitd285e73c634df20f680b2661be6b20ba32e9335a (patch)
treefff62abe5cacd16a9f2c1abf56b5ea57e7c75c05 /examples/qt3d/simplecustommaterial/main.cpp
parentd788bcd6fd1b28994f467433b1486ac759952348 (diff)
Update examples
Not all work Change-Id: I7954f9fe41160c929ff48f8bdeae635b900fef33 Reviewed-by: Paul Lemire <paul.lemire@kdab.com>
Diffstat (limited to 'examples/qt3d/simplecustommaterial/main.cpp')
-rw-r--r--examples/qt3d/simplecustommaterial/main.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/examples/qt3d/simplecustommaterial/main.cpp b/examples/qt3d/simplecustommaterial/main.cpp
index da299e913..8f9a6e2ed 100644
--- a/examples/qt3d/simplecustommaterial/main.cpp
+++ b/examples/qt3d/simplecustommaterial/main.cpp
@@ -74,6 +74,7 @@ int main(int argc, char **argv)
QGuiApplication app(argc, argv);
setSurfaceFormat();
+ QQuickWindow::setGraphicsApi(QSGRendererInterface::OpenGLRhi);
QQuickView view;
view.resize(1024, 1024);