mesa: fix sw fallback state validation bug
authorBrian Paul <brianp@vmware.com>
Tue, 3 Mar 2009 20:52:24 +0000 (13:52 -0700)
committerBrian Paul <brianp@vmware.com>
Tue, 3 Mar 2009 20:55:25 +0000 (13:55 -0700)
commitde1caa550700ae38ff791c30f6d482f3efddebd0
tree7aeb0c7fdb042be1039ffb33895943187a0b447e
parent317a7da2c452f35ef627aec6fc4d31406758725d
mesa: fix sw fallback state validation bug

When a hw driver fell back to swrast, swrast wasn't always getting informed
of program changes.  When fixed function is translated into shaders, flags
like _NEW_LIGHT, _NEW_TEXTURE, etc. should really signal _NEW_PROGRAM.
In this case, swrast wasn't seeing _NEW_PROGRAM when new fragment shaders
were generated.
src/mesa/main/state.c