diff options
author | Keith Whitwell <[email protected]> | 2005-06-09 14:55:34 +0000 |
---|---|---|
committer | Keith Whitwell <[email protected]> | 2005-06-09 14:55:34 +0000 |
commit | 81032030ff42dd78133d85f7cabab5fb4c9aaf1e (patch) | |
tree | d91f33c2f2c3d0814b43ae0da17a4f120c4e4372 /src/mesa/tnl/t_vb_program.c | |
parent | a8534885efb13ec7f071192c1504513cd90d07de (diff) |
Store compiled vertex program representations in a pointer in the
vertex_program struct.
Allow switching between regular and vertex_program implementations
of fixed function TNL with the MESA_TNL_PROG environment var
(previously this required recompilation).
Ensure program compilation only references program data, not the
wider context. This means that compiled programs only need to be
invalidated when the program string changes, not on other state
changes.
Diffstat (limited to 'src/mesa/tnl/t_vb_program.c')
-rw-r--r-- | src/mesa/tnl/t_vb_program.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/mesa/tnl/t_vb_program.c b/src/mesa/tnl/t_vb_program.c index 9cf5df7cae5..d77f5424c14 100644 --- a/src/mesa/tnl/t_vb_program.c +++ b/src/mesa/tnl/t_vb_program.c @@ -80,7 +80,8 @@ run_vp( GLcontext *ctx, struct tnl_pipeline_stage *stage ) struct vertex_program *program = ctx->VertexProgram.Current; GLuint i; - if (!ctx->VertexProgram._Enabled) + if (!ctx->VertexProgram._Enabled || + !program->IsNVProgram) return GL_TRUE; /* load program parameter registers (they're read-only) */ |