mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-24 16:50:22 +01:00
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>
(cherry picked from commit b01a3a9b72)
This commit is contained in:
parent
f5a8a37c73
commit
a3b657a607
1 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue