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.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/examples/opengl/hellogles3/main.cpp b/examples/opengl/hellogles3/main.cpp
index 3125623395..f0de28bdc4 100644
--- a/examples/opengl/hellogles3/main.cpp
+++ b/examples/opengl/hellogles3/main.cpp
@@ -38,11 +38,11 @@
**
****************************************************************************/
-#include <QApplication>
+#include <QGuiApplication>
#include <QSurfaceFormat>
#include <QOpenGLContext>
-#include "mainwindow.h"
+#include "glwindow.h"
// This example demonstrates easy, cross-platform usage of OpenGL ES 3.0 functions via
// QOpenGLExtraFunctions in an application that works identically on desktop platforms
@@ -69,10 +69,10 @@ int main(int argc, char *argv[])
QSurfaceFormat::setDefaultFormat(fmt);
- QApplication app(argc, argv);
+ QGuiApplication app(argc, argv);
- MainWindow mainWindow;
- mainWindow.showMaximized();
+ GLWindow glWindow;
+ glWindow.showMaximized();
return app.exec();
}