mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-29 18:28:14 +02:00
st/glx: accept GLX_SAMPLE_BUFFERS/SAMPLES_ARB == 0
Only fail if GLX_SAMPLE_BUFFERS_ARB or GLX_SAMPLES_ARB are non-zero.
We were already doing this in the older swrast/glx code.
This fixes a piglit/waffle problem where we'd always fail to get a
visual/config and report the test as "skip".
Note: This is a candidate for the stable branches.
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
(cherry picked from commit c6d74bfaf6)
This commit is contained in:
parent
b086d9ced7
commit
37be707f57
1 changed files with 6 additions and 4 deletions
|
|
@ -832,11 +832,13 @@ choose_visual( Display *dpy, int screen, const int *list, GLboolean fbConfig )
|
|||
* GLX_ARB_multisample
|
||||
*/
|
||||
case GLX_SAMPLE_BUFFERS_ARB:
|
||||
/* ms not supported */
|
||||
return NULL;
|
||||
case GLX_SAMPLES_ARB:
|
||||
/* ms not supported */
|
||||
return NULL;
|
||||
parselist++;
|
||||
if (*parselist++ != 0) {
|
||||
/* ms not supported */
|
||||
return NULL;
|
||||
}
|
||||
break;
|
||||
|
||||
/*
|
||||
* FBConfig attribs.
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue