st/glx: accept GLX_SAMPLE_BUFFERS/SAMPLES_ARB == 0
authorBrian Paul <brianp@vmware.com>
Sun, 2 Dec 2012 23:18:22 +0000 (16:18 -0700)
committerBrian Paul <brianp@vmware.com>
Mon, 3 Dec 2012 18:10:09 +0000 (11:10 -0700)
commitc6d74bfaf61a6d52e6f886e33f2e98c3007d79fc
tree19484efe06857a7ef8c7e10d3ac2eac44bf7f128
parent006918c0db77e945ac56b15bc64eba502b86d56c
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>
src/gallium/state_trackers/glx/xlib/glx_api.c