diff options
author | Tom Cooksey <thomas.cooksey@nokia.com> | 2010-03-10 13:50:59 (GMT) |
---|---|---|
committer | Tom Cooksey <thomas.cooksey@nokia.com> | 2010-03-10 14:27:46 (GMT) |
commit | 9bf426a2af27ad5bfdb35706c3ed48e77f654f4d (patch) | |
tree | 1a97b6d63cb2f5503a13ee7f4e97dce8eab3db9d /src/opengl/qgl_qws.cpp | |
parent | 7ddf13c8fba2aadf00c0d6c822c6b4acbd3bd54f (diff) | |
download | Qt-9bf426a2af27ad5bfdb35706c3ed48e77f654f4d.zip Qt-9bf426a2af27ad5bfdb35706c3ed48e77f654f4d.tar.gz Qt-9bf426a2af27ad5bfdb35706c3ed48e77f654f4d.tar.bz2 |
Update QGLFormat from EGLConfig properly
Previously, some members of QGLFormat (like alphaBufferSize) would
be left to the initial -1 value.
Reviewed-By: TrustMe
Diffstat (limited to 'src/opengl/qgl_qws.cpp')
-rw-r--r-- | src/opengl/qgl_qws.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/opengl/qgl_qws.cpp b/src/opengl/qgl_qws.cpp index f72f051..96b2454 100644 --- a/src/opengl/qgl_qws.cpp +++ b/src/opengl/qgl_qws.cpp @@ -200,7 +200,7 @@ bool QGLContext::chooseContext(const QGLContext* shareContext) } // Inform the higher layers about the actual format properties. - qt_egl_update_format(*(d->eglContext), d->glFormat); + qt_glformat_from_eglconfig(d->glFormat, d->eglContext->config()); // Create a new context for the configuration. if (!d->eglContext->createContext |