瀏覽代碼

Move the call to _tnl_UpdateFixedFunctionProgram to make

it easier for hardware drivers to test this out.
tags/mesa_20050504
Keith Whitwell 20 年之前
父節點
當前提交
a661654a33
共有 2 個文件被更改,包括 4 次插入1 次删除
  1. 4
    0
      src/mesa/tnl/t_pipeline.c
  2. 0
    1
      src/mesa/tnl/t_vb_arbprogram.c

+ 4
- 0
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)

+ 0
- 1
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

Loading…
取消
儲存