summaryrefslogtreecommitdiffstats
path: root/src/gui/egl
diff options
context:
space:
mode:
authorTom Cooksey <thomas.cooksey@nokia.com>2010-04-13 10:40:35 (GMT)
committerTom Cooksey <thomas.cooksey@nokia.com>2010-04-14 12:51:49 (GMT)
commit9ad274406a0f893f9a595aac7031deac2b25afbd (patch)
treebd456799e15d91d0e2c0ab9173778c8a362495f9 /src/gui/egl
parent68037d915cb5f8070c89c70fe741982340def79e (diff)
downloadQt-9ad274406a0f893f9a595aac7031deac2b25afbd.zip
Qt-9ad274406a0f893f9a595aac7031deac2b25afbd.tar.gz
Qt-9ad274406a0f893f9a595aac7031deac2b25afbd.tar.bz2
Print more information when debugging X11 Visual selection
Reviewed-By: TrustMe
Diffstat (limited to 'src/gui/egl')
-rw-r--r--src/gui/egl/qegl_x11.cpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/gui/egl/qegl_x11.cpp b/src/gui/egl/qegl_x11.cpp
index 5341ea1..cb8dcda 100644
--- a/src/gui/egl/qegl_x11.cpp
+++ b/src/gui/egl/qegl_x11.cpp
@@ -210,6 +210,11 @@ VisualID QEgl::getCompatibleVisualId(EGLConfig config)
}
XFree(chosenVisualInfo);
}
+#ifdef QT_DEBUG_X11_VISUAL_SELECTION
+ else
+ qDebug("EGL did not suggest a VisualID (EGL_NATIVE_VISUAL_ID was zero) for EGLConfig %d", configId);
+#endif
+
if (visualId) {
#ifdef QT_DEBUG_X11_VISUAL_SELECTION
if (configAlphaSize > 0)
@@ -263,6 +268,11 @@ VisualID QEgl::getCompatibleVisualId(EGLConfig config)
# endif // QT_DEBUG_X11_VISUAL_SELECTION
return visualId;
}
+# ifdef QT_DEBUG_X11_VISUAL_SELECTION
+ else
+ qDebug("Failed to find an XVisual which matches EGL config %d using XRender", configId);
+# endif // QT_DEBUG_X11_VISUAL_SELECTION
+
#endif //!defined(QT_NO_XRENDER)