summaryrefslogtreecommitdiffstats
path: root/src/opengl
diff options
context:
space:
mode:
authorJani Hautakangas <jani.hautakangas@nokia.com>2011-05-30 11:02:15 (GMT)
committerJani Hautakangas <jani.hautakangas@nokia.com>2011-05-30 11:36:02 (GMT)
commit8fb90ce32dde5d4045c23ff44f29d19054db0d9b (patch)
tree923d373a4fde13ed38c150f6febc787db5d072a2 /src/opengl
parenta9c76a7403b573ebe69d324d0b2f16f367c3a458 (diff)
downloadQt-8fb90ce32dde5d4045c23ff44f29d19054db0d9b.zip
Qt-8fb90ce32dde5d4045c23ff44f29d19054db0d9b.tar.gz
Qt-8fb90ce32dde5d4045c23ff44f29d19054db0d9b.tar.bz2
Fix for BCM2727 chip detection on Symbian
QSymbianGraphcisSystemEx::hasBCM2727() uses bool QApplicationPrivate::useTranslucentEGLSurfaces to decide if Symbian is running on BCM2727 chip which is not entirely correct. bool QApplicationPrivate::useTranslucentEGLSurfaces should be assigned according to QSymbianGraphcisSystemEx::hasBCM2727() and QSymbianGraphcisSystemEx::hasBCM2727() should be also static function. Task-number: QTBUG-19578 Reviewed-by: Laszlo Agocs
Diffstat (limited to 'src/opengl')
-rw-r--r--src/opengl/qgl_symbian.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/opengl/qgl_symbian.cpp b/src/opengl/qgl_symbian.cpp
index 91904d0..86176c9 100644
--- a/src/opengl/qgl_symbian.cpp
+++ b/src/opengl/qgl_symbian.cpp
@@ -183,9 +183,7 @@ bool QGLContext::chooseContext(const QGLContext* shareContext) // almost same as
d->ownsEglContext = true;
d->eglContext->setApi(QEgl::OpenGL);
- QGraphicsSystemEx *ex = QApplicationPrivate::graphicsSystem()->platformExtension();
- QSymbianGraphicsSystemEx *symex = static_cast<QSymbianGraphicsSystemEx*>(ex);
- if (symex && !symex->hasBCM2727()) {
+ if (!QSymbianGraphicsSystemEx::hasBCM2727()) {
// Most likely we have hw support for multisampling
// so let's enable it.
d->glFormat.setSampleBuffers(1);