summaryrefslogtreecommitdiffstats
path: root/examples/qt3d/advancedcustommaterial
diff options
context:
space:
mode:
authorMäättä Antti <antti.maatta@qt.io>2017-05-08 09:26:44 +0300
committerJani Heikkinen <jani.heikkinen@qt.io>2017-05-09 09:00:59 +0000
commitc0f12806a2851f481788f383fef569d441b131ed (patch)
treead00fa242b493dc6a6727de8915ede01f7006618 /examples/qt3d/advancedcustommaterial
parentb9908909c9b364bebf16dcd0743cdeaa16555dbe (diff)
Call setSurfaceFormat after QQuiApplication instance initiation
The setSurfaceFormat function calls QOpenGLContext::openGLModuleType function which can only be called after QQuiApplication istance is initiated. Task-number: QTBUG-60617 Change-Id: I7cbf48f325de9c3cbbb5d8addb78bf55ae1b5d07 Reviewed-by: Laszlo Agocs <laszlo.agocs@qt.io>
Diffstat (limited to 'examples/qt3d/advancedcustommaterial')
-rw-r--r--examples/qt3d/advancedcustommaterial/main.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/qt3d/advancedcustommaterial/main.cpp b/examples/qt3d/advancedcustommaterial/main.cpp
index 9338ab4f4..631e26e43 100644
--- a/examples/qt3d/advancedcustommaterial/main.cpp
+++ b/examples/qt3d/advancedcustommaterial/main.cpp
@@ -71,8 +71,8 @@ void setSurfaceFormat()
int main(int argc, char **argv)
{
- setSurfaceFormat();
QGuiApplication app(argc, argv);
+ setSurfaceFormat();
QQuickView view;