summaryrefslogtreecommitdiffstats
path: root/examples/opengl/hellogles3/main.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'examples/opengl/hellogles3/main.cpp')
-rw-r--r--examples/opengl/hellogles3/main.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/opengl/hellogles3/main.cpp b/examples/opengl/hellogles3/main.cpp
index a6c6398628..29b3b9617a 100644
--- a/examples/opengl/hellogles3/main.cpp
+++ b/examples/opengl/hellogles3/main.cpp
@@ -64,6 +64,8 @@
int main(int argc, char *argv[])
{
+ QGuiApplication app(argc, argv);
+
QSurfaceFormat fmt;
fmt.setDepthBufferSize(24);
@@ -79,8 +81,6 @@ int main(int argc, char *argv[])
QSurfaceFormat::setDefaultFormat(fmt);
- QGuiApplication app(argc, argv);
-
GLWindow glWindow;
glWindow.showMaximized();