summaryrefslogtreecommitdiffstats
path: root/progs/xdemos/pbutil.c
diff options
context:
space:
mode:
authorBrian Paul <[email protected]>2005-04-06 22:40:39 +0000
committerBrian Paul <[email protected]>2005-04-06 22:40:39 +0000
commitc3984fc01595e40cabc77ed45d9e76625a3152e2 (patch)
tree394fcfe2d0f5521c3edee5e73f61bc461643522c /progs/xdemos/pbutil.c
parent481bdd383ac309cda8e471215b8fd3d6b5fa8cad (diff)
changed implementation of GetAllFBConfigs()
Diffstat (limited to 'progs/xdemos/pbutil.c')
-rw-r--r--progs/xdemos/pbutil.c11
1 files changed, 4 insertions, 7 deletions
diff --git a/progs/xdemos/pbutil.c b/progs/xdemos/pbutil.c
index e82fc6ac59d..479abc983ca 100644
--- a/progs/xdemos/pbutil.c
+++ b/progs/xdemos/pbutil.c
@@ -89,13 +89,10 @@ GetAllFBConfigs(Display *dpy, int screen, int *nConfigs)
#endif
#if defined(GLX_SGIX_fbconfig) && defined(GLX_SGIX_pbuffer)
if (pbSupport == 2) {
- /* this *seems* to work, but may not be perfect */
- static int fbAttribs[] = {
- GLX_RENDER_TYPE, 0,
- GLX_DRAWABLE_TYPE, 0,
- None
- };
- return glXChooseFBConfigSGIX(dpy, screen, fbAttribs, nConfigs);
+ /* The GLX_SGIX_fbconfig extensions says to pass NULL to get list
+ * of all available configurations.
+ */
+ return glXChooseFBConfigSGIX(dpy, screen, NULL, nConfigs);
}
#endif
return NULL;