Mesa (9.2): glx: don't fail out when no configs if we have visuals
Carl Worth
cworth at kemper.freedesktop.org
Fri Dec 13 04:20:45 UTC 2013
Module: Mesa
Branch: 9.2
Commit: a3b657a6078a146b0ae514879c2affc8e44d7f1e
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=a3b657a6078a146b0ae514879c2affc8e44d7f1e
Author: Dave Airlie <airlied at redhat.com>
Date: Mon Nov 18 17:34:52 2013 +1000
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 at lists.freedesktop.org>
Reviewed-by: Adam Jackson <ajax at redhat.com>
Reviewed-by: Brian Paul <brianp at vmware.com>
Signed-off-by: Dave Airlie <airlied at redhat.com>
(cherry picked from commit b01a3a9b72ed8d4899b4552658da7233c451142a)
---
src/glx/glxcmds.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/src/glx/glxcmds.c b/src/glx/glxcmds.c
index 3b250cc..ec16e8f 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;
}
More information about the mesa-commit
mailing list