mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-16 11:58:05 +02:00
mesa: add _NEW_CURRENT_ATTRIB in _mesa_program_state_flags()
If color material mode is enabled, constant buffer entries related
to the material coefficients will depend on glColor. So add
_NEW_CURRENT_ATTRIB to the bitset returned for material-related
constants in _mesa_program_state_flags().
This fixes a bug exercised by the new piglit draw-arrays-colormaterial
test.
Note: This is a candidate for the 7.11 branch.
(cherry picked from commit 57169c4694)
This commit is contained in:
parent
1cf8f9599c
commit
2ba0d0a5e8
1 changed files with 5 additions and 2 deletions
|
|
@ -664,10 +664,13 @@ _mesa_program_state_flags(const gl_state_index state[STATE_LENGTH])
|
|||
{
|
||||
switch (state[0]) {
|
||||
case STATE_MATERIAL:
|
||||
case STATE_LIGHTPROD:
|
||||
case STATE_LIGHTMODEL_SCENECOLOR:
|
||||
/* these can be effected by glColor when colormaterial mode is used */
|
||||
return _NEW_LIGHT | _NEW_CURRENT_ATTRIB;
|
||||
|
||||
case STATE_LIGHT:
|
||||
case STATE_LIGHTMODEL_AMBIENT:
|
||||
case STATE_LIGHTMODEL_SCENECOLOR:
|
||||
case STATE_LIGHTPROD:
|
||||
return _NEW_LIGHT;
|
||||
|
||||
case STATE_TEXGEN:
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue