diff options
author | Adam Jackson <[email protected]> | 2008-01-22 14:57:20 -0500 |
---|---|---|
committer | Brian <[email protected]> | 2008-01-22 14:04:39 -0700 |
commit | 557b0d9df7ffa71135959ce0ed8de346b9175b73 (patch) | |
tree | a4b676a0ac604784c4a0e9e23849405a5e58f964 /progs/xdemos | |
parent | 888f4380cf6f2d285b2ebdab0795be9336236e35 (diff) |
glxinfo: Fix multisample visual reporting.
strstr() == 0 tests for the string _not_ being present. Originally
Red Hat bug #351871.
Diffstat (limited to 'progs/xdemos')
-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 3e8e0be5203..e33cddff047 100644 --- a/progs/xdemos/glxinfo.c +++ b/progs/xdemos/glxinfo.c @@ -596,7 +596,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); } |