glxinfo: Fix multisample visual reporting.
authorAdam Jackson <ajax@redhat.com>
Tue, 22 Jan 2008 19:57:20 +0000 (14:57 -0500)
committerAdam 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

index db7d1ed..35b6ed1 100644 (file)
@@ -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);
    }