diff options
author | Kristian Høgsberg <krh@bitplanet.net> | 2010-04-08 22:09:11 -0400 |
---|---|---|
committer | Kristian Høgsberg <krh@bitplanet.net> | 2010-04-09 15:15:28 -0400 |
commit | edb5253dfa0751e451dca7c9a494be4609390545 (patch) | |
tree | edc90e5e4898645023b023f843ee37429f668db9 /progs/perf/teximage.c | |
parent | ba81b0743efd978509b1931d7b4b93f37e8aeb5e (diff) |
glx: Fix config chooser logic for 'mask' matching
When matching attributes using the 'mask' matching criteria, the spec
says that
"Only GLXFBConfigs for which the set bits of attribute include all
the bits that are set in the requested value are
considered. (Additional bits might be set in the attribute)."
The current test returns true if the two bit masks have bits in
common, specifically it matches even if the requested value has bits
set that are not set in the fbconfig attribute. For example, an
application asking for
GLX_DRAWABLE_TYPE, GLX_PIXMAP_BIT | GLX_PBUFFER_BIT,
as glxpbdemo does, will match fbconfigs that don't support pbuffer
rendering, as long as they support pixmap rendering.
Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
Diffstat (limited to 'progs/perf/teximage.c')
0 files changed, 0 insertions, 0 deletions