mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-04 04:50:11 +01:00
Follow the GLX_SGIX_fbconfig spec and return the complete list of
available fbconfigs if attrList is NULL. This fixes bug #2917.
This commit is contained in:
parent
c61782958b
commit
c51ed8c236
1 changed files with 1 additions and 1 deletions
|
|
@ -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 ) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue