summaryrefslogtreecommitdiffstats
path: root/src/glx/x11/glxcmds.c
diff options
context:
space:
mode:
authorIan Romanick <[email protected]>2005-04-07 00:05:55 +0000
committerIan Romanick <[email protected]>2005-04-07 00:05:55 +0000
commitc51ed8c2364b9e86a138cdb07fe2293ccc88f678 (patch)
treefdd16260de581c3cefbd143e39a99cc52cfe1ba0 /src/glx/x11/glxcmds.c
parentc61782958b00aeaac4dae3b24b6ff26a1be53e8b (diff)
Follow the GLX_SGIX_fbconfig spec and return the complete list of
available fbconfigs if attrList is NULL. This fixes bug #2917.
Diffstat (limited to 'src/glx/x11/glxcmds.c')
-rw-r--r--src/glx/x11/glxcmds.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/glx/x11/glxcmds.c b/src/glx/x11/glxcmds.c
index 8d6dca2af1b..b9fa4eeb451 100644
--- a/src/glx/x11/glxcmds.c
+++ b/src/glx/x11/glxcmds.c
@@ -1678,7 +1678,7 @@ PUBLIC GLXFBConfig *GLX_PREFIX(glXChooseFBConfig)(Display *dpy, int screen,
config_list = (__GLcontextModes **)
GLX_PREFIX(glXGetFBConfigs)( dpy, screen, & list_size );
- if ( (config_list != NULL) && (list_size > 0) ) {
+ if ( (config_list != NULL) && (list_size > 0) && (attribList != NULL) ) {
list_size = choose_visual( config_list, list_size, attribList,
GL_TRUE );
if ( list_size == 0 ) {