summaryrefslogtreecommitdiffstats
path: root/src/gui/egl/qegl_x11.cpp
diff options
context:
space:
mode:
authorTom Cooksey <thomas.cooksey@nokia.com>2010-02-19 17:29:42 (GMT)
committerTom Cooksey <thomas.cooksey@nokia.com>2010-03-02 08:24:24 (GMT)
commit445b62cb432deb8aed3be766d3c37b9567e1d4ec (patch)
treef17ebb363831739f9bcc2beb05ae2098779e44e8 /src/gui/egl/qegl_x11.cpp
parentc993aef82eca9f5d5241093f407179e4189ab7f1 (diff)
downloadQt-445b62cb432deb8aed3be766d3c37b9567e1d4ec.zip
Qt-445b62cb432deb8aed3be766d3c37b9567e1d4ec.tar.gz
Qt-445b62cb432deb8aed3be766d3c37b9567e1d4ec.tar.bz2
Make QGLWidget use new QEgl::getCompatibleVisualId API
Reviewed-By: TrustMe
Diffstat (limited to 'src/gui/egl/qegl_x11.cpp')
-rw-r--r--src/gui/egl/qegl_x11.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/gui/egl/qegl_x11.cpp b/src/gui/egl/qegl_x11.cpp
index 2c0bbd3..49c8d60 100644
--- a/src/gui/egl/qegl_x11.cpp
+++ b/src/gui/egl/qegl_x11.cpp
@@ -116,6 +116,7 @@ void QEglProperties::setPaintDeviceFormat(QPaintDevice *dev)
setVisualFormat(qt_x11Info(dev));
}
+//#define QT_DEBUG_X11_VISUAL_SELECTION 1
VisualID QEgl::getCompatibleVisualId(EGLConfig config)
{
@@ -174,7 +175,7 @@ VisualID QEgl::getCompatibleVisualId(EGLConfig config)
if (visualId) {
#ifdef QT_DEBUG_X11_VISUAL_SELECTION
- if (configHasAlpha)
+ if (configAlphaSize > 0)
qDebug("Using ARGB Visual ID %d provided by EGL for config %d", (int)visualId, (int)config);
else
qDebug("Using Opaque Visual ID %d provided by EGL for config %d", (int)visualId, (int)config);
@@ -219,7 +220,7 @@ VisualID QEgl::getCompatibleVisualId(EGLConfig config)
}
if (visualId) {
# ifdef QT_DEBUG_X11_VISUAL_SELECTION
- if (configHasAlpha)
+ if (configAlphaSize > 0)
qDebug("Using ARGB Visual ID %d provided by XRender for EGL config %d", (int)visualId, (int)config);
else
qDebug("Using Opaque Visual ID %d provided by XRender for EGL config %d", (int)visualId, (int)config);