mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-08 11:18:08 +02:00
glxinfo: Fix multisample visual reporting.
strstr() == 0 tests for the string _not_ being present. Originally Red Hat bug #351871.
This commit is contained in:
parent
888f4380cf
commit
557b0d9df7
1 changed files with 1 additions and 1 deletions
|
|
@ -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);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue