We need to call _mesa_load_state_parameters() whenever a fragment program
authorBrian Paul <brian.paul@tungstengraphics.com>
Tue, 31 Oct 2006 16:02:56 +0000 (16:02 +0000)
committerBrian Paul <brian.paul@tungstengraphics.com>
Tue, 31 Oct 2006 16:02:56 +0000 (16:02 +0000)
commit4e9e0aff790656821970ba74d8996718e415ea68
tree74f28e91c90865fd34ffe903f863c3de486c7dbd
parent72f49657e8f7eac9bdb09435230fbe8f6a2c854b
We need to call _mesa_load_state_parameters() whenever a fragment program
is enabled and we've changed any GL state that might be referenced by a
fragment program (such as state.fog.params).  Do this during swrast
validation, not in _swrast_exec_fragment_program().
src/mesa/swrast/s_context.c
src/mesa/swrast/s_nvfragprog.c