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_x11egl.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_x11egl.cpp')
-rw-r--r-- | src/opengl/qgl_x11egl.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/opengl/qgl_x11egl.cpp b/src/opengl/qgl_x11egl.cpp index a7c92cf..fe87c65 100644 --- a/src/opengl/qgl_x11egl.cpp +++ b/src/opengl/qgl_x11egl.cpp @@ -216,9 +216,8 @@ bool QGLContext::chooseContext(const QGLContext* shareContext) const_cast<QGLContext *>(shareContext)->d_func()->sharing = true; } - // Inform the higher layers about the actual format properties. - qt_egl_update_format(*(d->eglContext), d->glFormat); - + // Inform the higher layers about the actual format properties + qt_glformat_from_eglconfig(d->glFormat, d->eglContext->config()); // Do don't create the EGLSurface for everything. // QWidget - yes, create the EGLSurface and store it in QGLContextPrivate::eglSurface |