mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 13:58:04 +02:00
mesa/gallium: do not use enum for bit-allocated member
The signedness of enums are undefined, so on platforms with signed enums, this isn't going to work. One such platform is Microsoft Windows. So let's just use an unsigned here instead. Fixes:b1c4c4c7f5("mesa/gallium: automatically lower alpha-testing") Acked-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4648> (cherry picked from commit013d9e40fe)
This commit is contained in:
parent
8d13ea1571
commit
d0a7c5b2e0
2 changed files with 2 additions and 2 deletions
|
|
@ -463,7 +463,7 @@
|
|||
"description": "mesa/gallium: do not use enum for bit-allocated member",
|
||||
"nominated": true,
|
||||
"nomination_type": 1,
|
||||
"resolution": 0,
|
||||
"resolution": 1,
|
||||
"master_sha": null,
|
||||
"because_sha": "b1c4c4c7f53cde52a8f3b3ec17cd66b89bf04199"
|
||||
},
|
||||
|
|
|
|||
|
|
@ -137,7 +137,7 @@ struct st_fp_variant_key
|
|||
GLuint lower_two_sided_color:1;
|
||||
|
||||
GLuint lower_flatshade:1;
|
||||
enum compare_func lower_alpha_func:3;
|
||||
unsigned lower_alpha_func:3;
|
||||
|
||||
/** needed for ATI_fragment_shader */
|
||||
char texture_targets[MAX_NUM_FRAGMENT_REGISTERS_ATI];
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue