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 db7d1ed08e72e539fab33b4df55b2a6c6e5fd2eb..35b6ed16b09a67bc8cd9b4758adcc6ed558e02ec 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);
    }