mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 05:18:08 +02:00
mesa: fix color material tracking
f6c8ca06changed this code to only set color materials mask when the VERT_BIT_COLOR0 bit is set instead of when color material is enabled. But this meant we always skipped over the STATE_CURRENT_ATTRIB values. Fixes:f6c8ca06f6("mesa: fix material inputs in ffvertex_prog.c") Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/7122 Reviewed-by: Marek Olšák <marek.olsak@amd.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/34833>
This commit is contained in:
parent
92f553bcff
commit
600892802d
1 changed files with 1 additions and 1 deletions
|
|
@ -552,7 +552,7 @@ static void set_material_flags( struct tnl_program *p )
|
|||
p->color_materials = 0;
|
||||
p->materials = 0;
|
||||
|
||||
if (p->state->varying_vp_inputs & VERT_BIT_COLOR0) {
|
||||
if (p->state->light_color_material_mask) {
|
||||
p->materials =
|
||||
p->color_materials = p->state->light_color_material_mask;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue