changed implementation of GetAllFBConfigs()

This commit is contained in:
Brian Paul 2005-04-06 22:40:39 +00:00
parent 481bdd383a
commit c3984fc015
1 changed files with 4 additions and 7 deletions

View File

@ -89,13 +89,10 @@ GetAllFBConfigs(Display *dpy, int screen, int *nConfigs)
#endif #endif
#if defined(GLX_SGIX_fbconfig) && defined(GLX_SGIX_pbuffer) #if defined(GLX_SGIX_fbconfig) && defined(GLX_SGIX_pbuffer)
if (pbSupport == 2) { if (pbSupport == 2) {
/* this *seems* to work, but may not be perfect */ /* The GLX_SGIX_fbconfig extensions says to pass NULL to get list
static int fbAttribs[] = { * of all available configurations.
GLX_RENDER_TYPE, 0, */
GLX_DRAWABLE_TYPE, 0, return glXChooseFBConfigSGIX(dpy, screen, NULL, nConfigs);
None
};
return glXChooseFBConfigSGIX(dpy, screen, fbAttribs, nConfigs);
} }
#endif #endif
return NULL; return NULL;