projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
46eb02b
)
glxinfo: Fix multisample visual reporting.
author
Adam Jackson
<ajax@redhat.com>
Tue, 22 Jan 2008 19:57:20 +0000
(14:57 -0500)
committer
Adam Jackson
<ajax@redhat.com>
Tue, 22 Jan 2008 19:57:20 +0000
(14:57 -0500)
strstr() == 0 tests for the string _not_ being present. Originally
Red Hat bug #351871.
progs/xdemos/glxinfo.c
patch
|
blob
|
history
diff --git
a/progs/xdemos/glxinfo.c
b/progs/xdemos/glxinfo.c
index db7d1ed08e72e539fab33b4df55b2a6c6e5fd2eb..35b6ed16b09a67bc8cd9b4758adcc6ed558e02ec 100644
(file)
--- a/
progs/xdemos/glxinfo.c
+++ b/
progs/xdemos/glxinfo.c
@@
-657,7
+657,7
@@
get_visual_attribs(Display *dpy, XVisualInfo *vInfo,
/* multisample attribs */
#ifdef GLX_ARB_multisample
- if (ext && strstr(ext, "GLX_ARB_multisample")
== 0
) {
+ if (ext && strstr(ext, "GLX_ARB_multisample")) {
glXGetConfig(dpy, vInfo, GLX_SAMPLE_BUFFERS_ARB, &attribs->numMultisample);
glXGetConfig(dpy, vInfo, GLX_SAMPLES_ARB, &attribs->numSamples);
}