projects
/
profile
/
ivi
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
481bdd3
)
changed implementation of GetAllFBConfigs()
author
Brian Paul
<brian.paul@tungstengraphics.com>
Wed, 6 Apr 2005 22:40:39 +0000
(22:40 +0000)
committer
Brian Paul
<brian.paul@tungstengraphics.com>
Wed, 6 Apr 2005 22:40:39 +0000
(22:40 +0000)
progs/xdemos/pbutil.c
patch
|
blob
|
history
diff --git
a/progs/xdemos/pbutil.c
b/progs/xdemos/pbutil.c
index
e82fc6a
..
479abc9
100644
(file)
--- 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) {
#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;
}
#endif
return NULL;