From e1ae5b89fce51ce1138a5cbe93caa0e1fccf219f Mon Sep 17 00:00:00 2001 From: Adam Jackson Date: Tue, 22 Jan 2008 14:57:20 -0500 Subject: glxinfo: Fix multisample visual reporting. strstr() == 0 tests for the string _not_ being present. Originally Red Hat bug #351871. --- progs/xdemos/glxinfo.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'progs') diff --git a/progs/xdemos/glxinfo.c b/progs/xdemos/glxinfo.c index db7d1ed08e..35b6ed16b0 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); } -- cgit v1.2.3