diff options
Diffstat (limited to 'src/opengl/qgl_wince.cpp')
-rw-r--r-- | src/opengl/qgl_wince.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/opengl/qgl_wince.cpp b/src/opengl/qgl_wince.cpp index f951ea0..dbb5c98 100644 --- a/src/opengl/qgl_wince.cpp +++ b/src/opengl/qgl_wince.cpp @@ -178,12 +178,12 @@ bool QGLContext::chooseContext(const QGLContext* shareContext) #endif // Create the EGL surface to draw into. - if (!d->eglContext->createSurface(device())) { + d->eglSurface = d->eglContext->createSurface(device()); + if (d->eglSurface == EGL_NO_SURFACE) { delete d->eglContext; d->eglContext = 0; return false; } - d->eglSurface = d->eglContext->surface(); return true; |