mesa: add _NEW_CURRENT_ATTRIB in _mesa_program_state_flags()
authorBrian Paul <brianp@vmware.com>
Fri, 30 Sep 2011 14:15:30 +0000 (08:15 -0600)
committerBrian Paul <brianp@vmware.com>
Fri, 30 Sep 2011 14:16:21 +0000 (08:16 -0600)
commit57169c469406f1880107a6b9f052708ce078942d
treebd62cb65ae79ffe79b09c09832ad90d7202b1d69
parent4e6bb0774ffa93141a3a8ec7bb47b190810b2a4b
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.
src/mesa/program/prog_statevars.c