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)
committerAndreas Boll <andreas.boll.dev@gmail.com>
Wed, 13 Feb 2013 17:38:42 +0000 (18:38 +0100)
commit37be707f57df72071a43b9899dec063730c338f5
tree23e2831776314c0cb676143c3d81f4a5495e95bb
parentb086d9ced7d3ab07afa008aea0253c75e827f392
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 c6d74bfaf61a6d52e6f886e33f2e98c3007d79fc)
src/gallium/state_trackers/glx/xlib/glx_api.c