mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-08 15:38:09 +02:00
Honor GLX_DONT_CARE in MATCH_MASK
NOTE: This is a candidate for stable branches.
Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=47478
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=62999
Bugzilla: http://bugs.winehq.org/show_bug.cgi?id=26763
(cherry picked from commit 9cda356004)
This commit is contained in:
parent
acc3561cca
commit
cc53944c26
1 changed files with 3 additions and 1 deletions
|
|
@ -912,8 +912,10 @@ init_fbconfig_for_chooser(struct glx_config * config,
|
|||
/* Test that all bits from a are contained in b */
|
||||
#define MATCH_MASK(param) \
|
||||
do { \
|
||||
if ((a->param & ~b->param) != 0) \
|
||||
if ( ((int) a-> param != (int) GLX_DONT_CARE) \
|
||||
&& ((a->param & ~b->param) != 0) ) { \
|
||||
return False; \
|
||||
} \
|
||||
} while (0);
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue