From 75711510b1ad7d4ac4434ad41a0ed71cfc0344dc Mon Sep 17 00:00:00 2001 From: Gunnar Sletta Date: Thu, 19 Jan 2012 12:51:43 +0100 Subject: Improve QSurface / QWindow API a bit and use that to avoid errors MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Change-Id: Iadba1c3a7b8e6bc7f145455132cefed2a905c11d Reviewed-by: Samuel Rødal --- examples/opengl/hellogl_es/glwindow.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'examples') 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; -- cgit v1.2.3