summaryrefslogtreecommitdiffstats
path: root/src/opengl/qgl_qws.cpp
diff options
context:
space:
mode:
authorTom Cooksey <thomas.cooksey@nokia.com>2010-03-10 13:50:59 (GMT)
committerTom Cooksey <thomas.cooksey@nokia.com>2010-03-10 14:27:46 (GMT)
commit9bf426a2af27ad5bfdb35706c3ed48e77f654f4d (patch)
tree1a97b6d63cb2f5503a13ee7f4e97dce8eab3db9d /src/opengl/qgl_qws.cpp
parent7ddf13c8fba2aadf00c0d6c822c6b4acbd3bd54f (diff)
downloadQt-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.cpp2
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