summaryrefslogtreecommitdiffstats
path: root/src/plugins/platforms/eglconvenience/qeglconvenience.cpp
diff options
context:
space:
mode:
authorQt Continuous Integration System <qt-info@nokia.com>2011-03-18 00:57:59 (GMT)
committerQt Continuous Integration System <qt-info@nokia.com>2011-03-18 00:57:59 (GMT)
commit5134b700b7311e39b25bd783f213e374de5efaaa (patch)
tree80f7e31ed771271514dfd403b9e2f70145799772 /src/plugins/platforms/eglconvenience/qeglconvenience.cpp
parent8e26d4b87ad5e2e61d7692af5ee5040caa6ef71a (diff)
parentce33fe15dde2151905839196da9927f4c19b18be (diff)
downloadQt-5134b700b7311e39b25bd783f213e374de5efaaa.zip
Qt-5134b700b7311e39b25bd783f213e374de5efaaa.tar.gz
Qt-5134b700b7311e39b25bd783f213e374de5efaaa.tar.bz2
Merge branch 'staging-master' of scm.dev.nokia.troll.no:qt/qt-lighthouse into master-integration
* 'staging-master' of scm.dev.nokia.troll.no:qt/qt-lighthouse: (101 commits) Fixes detected by the static-check Fixup license headers in Lighthouse plugins Mac: add autorelease pools to create_sys Don't skip remaining events on unhandled events in xcb backend. Lighthouse: Xcb, compile fix for the glx path Lighthouse: Make sure we don't use xkbcommon Lighthouse: Add pkg-config check for opengl es2 Rename qnaclunimplemented -> qfunctions_nacl Rename qconfig-minimal-system-depenencies.h Add QT_NO_FILESYSTEMITERATOR. Add QT_NO_DYNAMIC_LIBRARY. Compile. NaCl: Dont force release builds. NaCl: disable libtiff. posix platformdefs: Add QT_NO_SOCKET_H. qpnghandler: Compile with QT_NO_IMAGE_TEXT. Lighthouse: Support Q_NO_CLIPBOARD. Compile. Fix CoreServices framework addition for qpa. Update NaCl mkspecs. ...
Diffstat (limited to 'src/plugins/platforms/eglconvenience/qeglconvenience.cpp')
-rw-r--r--src/plugins/platforms/eglconvenience/qeglconvenience.cpp18
1 files changed, 9 insertions, 9 deletions
diff --git a/src/plugins/platforms/eglconvenience/qeglconvenience.cpp b/src/plugins/platforms/eglconvenience/qeglconvenience.cpp
index 24c21e6..ec4577a 100644
--- a/src/plugins/platforms/eglconvenience/qeglconvenience.cpp
+++ b/src/plugins/platforms/eglconvenience/qeglconvenience.cpp
@@ -206,7 +206,7 @@ bool q_reduceConfigAttributes(QVector<EGLint> *configAttributes)
return false;
}
-EGLConfig q_configFromQPlatformWindowFormat(EGLDisplay display, const QPlatformWindowFormat &format)
+EGLConfig q_configFromQPlatformWindowFormat(EGLDisplay display, const QPlatformWindowFormat &format, bool highestPixelFormat)
{
EGLConfig cfg = 0;
QVector<EGLint> configureAttributes = q_createConfigAttributesFromFormat(format);
@@ -227,14 +227,14 @@ EGLConfig q_configFromQPlatformWindowFormat(EGLDisplay display, const QPlatformW
if (!eglChooseConfig(display, configureAttributes.constData(), 0, 0, &matching) || !matching)
continue;
-// // If we want the best pixel format, then return the first
-// // matching configuration.
-// if (match == QEgl::BestPixelFormat) {
-// eglChooseConfig(display, props.properties(), &cfg, 1, &matching);
-// if (matching < 1)
-// continue;
-// return cfg;
-// }
+ // If we want the best pixel format, then return the first
+ // matching configuration.
+ if (highestPixelFormat) {
+ eglChooseConfig(display, configureAttributes.constData(), &cfg, 1, &matching);
+ if (matching < 1)
+ continue;
+ return cfg;
+ }
// Fetch all of the matching configurations and find the
// first that matches the pixel format we wanted.