diff options
author | Adam Jackson <ajax@redhat.com> | 2008-01-22 14:57:20 -0500 |
---|---|---|
committer | Adam Jackson <ajax@redhat.com> | 2008-01-22 14:57:20 -0500 |
commit | e1ae5b89fce51ce1138a5cbe93caa0e1fccf219f (patch) | |
tree | 02d39a3f6559c125152a2f394b901fcfc3f6651c /progs/xdemos/glxinfo.c | |
parent | 46eb02b60920a920b782bacb15f01b44e18f888d (diff) | |
download | external_mesa3d-e1ae5b89fce51ce1138a5cbe93caa0e1fccf219f.zip external_mesa3d-e1ae5b89fce51ce1138a5cbe93caa0e1fccf219f.tar.gz external_mesa3d-e1ae5b89fce51ce1138a5cbe93caa0e1fccf219f.tar.bz2 |
glxinfo: Fix multisample visual reporting.
strstr() == 0 tests for the string _not_ being present. Originally
Red Hat bug #351871.
Diffstat (limited to 'progs/xdemos/glxinfo.c')
-rw-r--r-- | progs/xdemos/glxinfo.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/progs/xdemos/glxinfo.c b/progs/xdemos/glxinfo.c index db7d1ed..35b6ed1 100644 --- 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); } |