diff options
author | Gunnar Sletta <gunnar.sletta@nokia.com> | 2012-01-19 12:51:43 +0100 |
---|---|---|
committer | Qt by Nokia <qt-info@nokia.com> | 2012-02-02 17:20:24 +0100 |
commit | 75711510b1ad7d4ac4434ad41a0ed71cfc0344dc (patch) | |
tree | fc8fae2ea9c623d76cb670e3b9cda9a0e125f573 /examples/opengl/hellogl_es/glwindow.cpp | |
parent | 6181676ca61f39f389a8c3ca293c369e7f80b1e8 (diff) |
Improve QSurface / QWindow API a bit and use that to avoid errors
Change-Id: Iadba1c3a7b8e6bc7f145455132cefed2a905c11d
Reviewed-by: Samuel Rødal <samuel.rodal@nokia.com>
Diffstat (limited to 'examples/opengl/hellogl_es/glwindow.cpp')
-rw-r--r-- | examples/opengl/hellogl_es/glwindow.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/examples/opengl/hellogl_es/glwindow.cpp b/examples/opengl/hellogl_es/glwindow.cpp index 6be4e63a20..d94d0d62cc 100644 --- a/examples/opengl/hellogl_es/glwindow.cpp +++ b/examples/opengl/hellogl_es/glwindow.cpp @@ -64,6 +64,8 @@ inline void Normalize(qreal &x, qreal &y, qreal &z) GLWindow::GLWindow() { + setSurfaceType(OpenGLSurface); + qtLogo = true; createdVertices = 0; createdNormals = 0; |