From: Dave Airlie Date: Mon, 18 Nov 2013 07:34:52 +0000 (+1000) Subject: glx: don't fail out when no configs if we have visuals X-Git-Tag: upstream/10.1.2~1418 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=b01a3a9b72ed8d4899b4552658da7233c451142a;p=platform%2Fupstream%2Fmesa.git 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: Reviewed-by: Adam Jackson Reviewed-by: Brian Paul Signed-off-by: Dave Airlie --- 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; }