From: Keith Whitwell Date: Fri, 22 Apr 2005 13:02:04 +0000 (+0000) Subject: Move the call to _tnl_UpdateFixedFunctionProgram to make X-Git-Tag: mesa-7.8~9382 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=a661654a33ba38990719ac9f5aea2910a5d5bf77;p=platform%2Fupstream%2Fmesa.git Move the call to _tnl_UpdateFixedFunctionProgram to make it easier for hardware drivers to test this out. --- diff --git a/src/mesa/tnl/t_pipeline.c b/src/mesa/tnl/t_pipeline.c index 9141219..8286760 100644 --- a/src/mesa/tnl/t_pipeline.c +++ b/src/mesa/tnl/t_pipeline.c @@ -126,6 +126,10 @@ void _tnl_run_pipeline( GLcontext *ctx ) * (ie const or non-const). */ if (check_input_changes( ctx ) || tnl->pipeline.new_state) { +#if TNL_FIXED_FUNCTION_PROGRAM + _tnl_UpdateFixedFunctionProgram( ctx ); +#endif + for (i = 0; i < tnl->pipeline.nr_stages ; i++) { struct tnl_pipeline_stage *s = &tnl->pipeline.stages[i]; if (s->validate) diff --git a/src/mesa/tnl/t_vb_arbprogram.c b/src/mesa/tnl/t_vb_arbprogram.c index d541293..79baa37 100644 --- a/src/mesa/tnl/t_vb_arbprogram.c +++ b/src/mesa/tnl/t_vb_arbprogram.c @@ -1464,7 +1464,6 @@ validate_vertex_program( GLcontext *ctx, struct tnl_pipeline_stage *stage ) #if TNL_FIXED_FUNCTION_PROGRAM if (!program) { - _tnl_UpdateFixedFunctionProgram( ctx ); program = &ctx->_TnlProgram; } #endif