mesa: another fix for program/texture state validation
authorBrian Paul <brianp@vmware.com>
Tue, 10 Feb 2009 23:28:25 +0000 (16:28 -0700)
committerBrian Paul <brianp@vmware.com>
Tue, 10 Feb 2009 23:28:25 +0000 (16:28 -0700)
commit537d3ed6f3112fdf16fd853ada0e0bcc8bd83227
tree858cf1c8909c7b4e509c486a994b157466ff7f83
parentc936a6083e2a0bace5f3937bd2c90371aedd9bea
mesa: another fix for program/texture state validation

This fixes a regression introduced in 46ae1abbac6837d051c10b2e8b57eab3d4958ff4

Break program validation into two steps, do part before texture state
validation and do the rest after:
1. Determine Vertex/Fragment _Enabled state.
2. Update texture state.
3. Determine pointers to current Vertex/Fragment programs (which may involve
generating new "fixed-function" programs).

See comments in the code for more details of the dependencies.
src/mesa/main/state.c