diff options
author | Brian Paul <[email protected]> | 2002-11-04 16:24:18 +0000 |
---|---|---|
committer | Brian Paul <[email protected]> | 2002-11-04 16:24:18 +0000 |
commit | d2e39bb0509fac2c4e3424376ea5f71e73066042 (patch) | |
tree | dbe3e5d71084708df2aef06bf7e1df1d80f5fa57 /progs | |
parent | 969e1ac233f7b1b995bb607642a6ac8e629fbced (diff) |
add support for GLX_ARB_multisample
Diffstat (limited to 'progs')
-rw-r--r-- | progs/xdemos/glxinfo.c | 16 |
1 files changed, 12 insertions, 4 deletions
diff --git a/progs/xdemos/glxinfo.c b/progs/xdemos/glxinfo.c index dde24c48658..230823eb8d4 100644 --- a/progs/xdemos/glxinfo.c +++ b/progs/xdemos/glxinfo.c @@ -1,4 +1,4 @@ -/* $Id: glxinfo.c,v 1.20 2002/10/14 13:57:23 brianp Exp $ */ +/* $Id: glxinfo.c,v 1.21 2002/11/04 16:24:18 brianp Exp $ */ /* * Copyright (C) 1999-2002 Brian Paul All Rights Reserved. @@ -422,9 +422,17 @@ get_visual_attribs(Display *dpy, XVisualInfo *vInfo, glXGetConfig(dpy, vInfo, GLX_TRANSPARENT_INDEX_VALUE, &attribs->transparentIndexValue); } - /* multisample tests not implemented yet */ - attribs->numSamples = 0; - attribs->numMultisample = 0; + /* multisample attribs */ +#ifdef GLX_ARB_multisample + if (strstr("GLX_ARB_multisample", ext) == 0) { + glXGetConfig(dpy, vInfo, GLX_SAMPLE_BUFFERS_ARB, &attribs->numMultisample); + glXGetConfig(dpy, vInfo, GLX_SAMPLES_ARB, &attribs->numSamples); + } +#endif + else { + attribs->numSamples = 0; + attribs->numMultisample = 0; + } #if defined(GLX_EXT_visual_rating) if (ext && strstr(ext, "GLX_EXT_visual_rating")) { |