diff options
author | Määttä Antti <antti.maatta@qt.io> | 2017-05-08 09:26:44 +0300 |
---|---|---|
committer | Jani Heikkinen <jani.heikkinen@qt.io> | 2017-05-09 09:00:59 +0000 |
commit | c0f12806a2851f481788f383fef569d441b131ed (patch) | |
tree | ad00fa242b493dc6a6727de8915ede01f7006618 /examples | |
parent | b9908909c9b364bebf16dcd0743cdeaa16555dbe (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')
-rw-r--r-- | examples/qt3d/advancedcustommaterial/main.cpp | 2 | ||||
-rw-r--r-- | examples/qt3d/simplecustommaterial/main.cpp | 2 |
2 files changed, 2 insertions, 2 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; diff --git a/examples/qt3d/simplecustommaterial/main.cpp b/examples/qt3d/simplecustommaterial/main.cpp index d841e7d19..6ccdcce64 100644 --- a/examples/qt3d/simplecustommaterial/main.cpp +++ b/examples/qt3d/simplecustommaterial/main.cpp @@ -71,8 +71,8 @@ void setSurfaceFormat() int main(int argc, char **argv) { - setSurfaceFormat(); QGuiApplication app(argc, argv); + setSurfaceFormat(); QQuickView view; |