summaryrefslogtreecommitdiffstats
path: root/src/glx/glxcmds.c
diff options
context:
space:
mode:
authorDave Airlie <airlied@redhat.com>2013-11-18 17:34:52 +1000
committerDave Airlie <airlied@redhat.com>2013-11-21 10:50:48 +1000
commitb01a3a9b72ed8d4899b4552658da7233c451142a (patch)
treec7c5c14c09a6b714a2a4e9bedf9d0215e12aa95c /src/glx/glxcmds.c
parenta43b49dfb13dc7e6d2d6d7ceee892077038d7102 (diff)
downloadexternal_mesa3d-b01a3a9b72ed8d4899b4552658da7233c451142a.zip
external_mesa3d-b01a3a9b72ed8d4899b4552658da7233c451142a.tar.gz
external_mesa3d-b01a3a9b72ed8d4899b4552658da7233c451142a.tar.bz2
glx: don't fail out when no configs if we have visuals
GLX 1.2 servers with no SGIX_fbconfigs exist (some citrix thing), and we fail glxinfo completely in those cases. CC: <mesa-stable@lists.freedesktop.org> Reviewed-by: Adam Jackson <ajax@redhat.com> Reviewed-by: Brian Paul <brianp@vmware.com> Signed-off-by: Dave Airlie <airlied@redhat.com>
Diffstat (limited to 'src/glx/glxcmds.c')
-rw-r--r--src/glx/glxcmds.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/glx/glxcmds.c b/src/glx/glxcmds.c
index 1d8fe83..06c4c16 100644
--- a/src/glx/glxcmds.c
+++ b/src/glx/glxcmds.c
@@ -183,7 +183,7 @@ GetGLXPrivScreenConfig(Display * dpy, int scrn, struct glx_display ** ppriv,
/* Check to see if the GL is supported on this screen */
*ppsc = (*ppriv)->screens[scrn];
- if ((*ppsc)->configs == NULL) {
+ if ((*ppsc)->configs == NULL && (*ppsc)->visuals == NULL) {
/* No support for GL on this screen regardless of visual */
return GLX_BAD_VISUAL;
}