瀏覽代碼

Follow the GLX_SGIX_fbconfig spec and return the complete list of

available fbconfigs if attrList is NULL.  This fixes bug #2917.
tags/mesa_20050504
Ian Romanick 20 年之前
父節點
當前提交
c51ed8c236
共有 1 個檔案被更改,包括 1 行新增1 行删除
  1. 1
    1
      src/glx/x11/glxcmds.c

+ 1
- 1
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 ) {

Loading…
取消
儲存