glx: don't fail out when no configs if we have visuals
authorDave Airlie <airlied@redhat.com>
Mon, 18 Nov 2013 07:34:52 +0000 (17:34 +1000)
committerDave Airlie <airlied@redhat.com>
Thu, 21 Nov 2013 00:50:48 +0000 (10:50 +1000)
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>
src/glx/glxcmds.c

index 1d8fe83231d265a68c8c1ed1f9ecfe13b337e2e0..06c4c16d6af165510eb196f5537e688ccb179095 100644 (file)
@@ -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;
    }