summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNicolai de Haan Brogger <ndhb78@gmail.com>2010-08-16 21:55:42 (GMT)
committerDonald Carr <donald.carr@nokia.com>2010-08-16 21:55:42 (GMT)
commit69e8769e2a3f44700c24437dc851ea817c16318f (patch)
treeb44f91f235cb066ef5dc353955a4e0ab0488cc77
parent82440843435b8bf02391fae1c9df6f081a945a65 (diff)
downloadQt-69e8769e2a3f44700c24437dc851ea817c16318f.zip
Qt-69e8769e2a3f44700c24437dc851ea817c16318f.tar.gz
Qt-69e8769e2a3f44700c24437dc851ea817c16318f.tar.bz2
Take advantage of a new EGL extension when posting 16 bit surfaces.
Replaces the existing NVIDIA EGL extension "EGL_NV_post_convert_replication" with another newer extension named "EGL_NV_post_convert_roundinng". The newer extension produces similar result when posting 16 bit surfaces to 24/32 bit as the old and performs faster. Motivated by qtbug-9444. Merge-request: 742 Reviewed-by: Donald Carr <donald.carr@nokia.com>
-rw-r--r--src/gui/egl/qegl_x11.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gui/egl/qegl_x11.cpp b/src/gui/egl/qegl_x11.cpp
index fea6e8d..15cc109 100644
--- a/src/gui/egl/qegl_x11.cpp
+++ b/src/gui/egl/qegl_x11.cpp
@@ -165,7 +165,7 @@ VisualID QEgl::getCompatibleVisualId(EGLConfig config)
if (chosenVisualInfo) {
// Skip size checks if implementation supports non-matching visual
// and config (http://bugreports.qt.nokia.com/browse/QTBUG-9444).
- if (QEgl::hasExtension("EGL_NV_post_convert_replication"))
+ if (QEgl::hasExtension("EGL_NV_post_convert_rounding"))
return visualId;
int visualRedSize = countBits(chosenVisualInfo->red_mask);