diff options
author | Brian Paul <brian.paul@tungstengraphics.com> | 2002-10-31 17:14:37 +0000 |
---|---|---|
committer | Brian Paul <brian.paul@tungstengraphics.com> | 2002-10-31 17:14:37 +0000 |
commit | e89f0792eb224d8876321668a8a39d5c58e154ab (patch) | |
tree | dc8be5570c1e65a755f202e411a6ac94e4ba25d2 /src | |
parent | e0e6bd7ae11c40e5141b2fb700a3e4bc186e1357 (diff) |
tweak pipeline flags for vertex programming
Diffstat (limited to 'src')
-rw-r--r-- | src/mesa/tnl/t_vb_vertex.c | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/src/mesa/tnl/t_vb_vertex.c b/src/mesa/tnl/t_vb_vertex.c index aa414bc5b1..9e9e1a9362 100644 --- a/src/mesa/tnl/t_vb_vertex.c +++ b/src/mesa/tnl/t_vb_vertex.c @@ -1,8 +1,8 @@ -/* $Id: t_vb_vertex.c,v 1.16 2002/10/29 20:29:04 brianp Exp $ */ +/* $Id: t_vb_vertex.c,v 1.17 2002/10/31 17:14:37 brianp Exp $ */ /* * Mesa 3-D graphics library - * Version: 3.5 + * Version: 5.0 * * Copyright (C) 1999-2001 Brian Paul All Rights Reserved. * @@ -137,6 +137,8 @@ static GLboolean run_vertex_stage( GLcontext *ctx, TNLcontext *tnl = TNL_CONTEXT(ctx); struct vertex_buffer *VB = &tnl->vb; + ASSERT(!ctx->VertexProgram.Enabled); + if (stage->changed_inputs) { if (ctx->_NeedEyeCoords) { @@ -194,7 +196,6 @@ static GLboolean run_vertex_stage( GLcontext *ctx, store->clipmask, &store->ormask, &store->andmask ); - } else { VB->NdcPtr = 0; @@ -305,11 +306,12 @@ static void dtr( struct gl_pipeline_stage *stage ) const struct gl_pipeline_stage _tnl_vertex_transform_stage = { "modelview/project/cliptest/divide", - 0, /* re-check -- always on */ - _MESA_NEW_NEED_EYE_COORDS | + _NEW_PROGRAM, /* check_state: only care about vertex prog */ + _MESA_NEW_NEED_EYE_COORDS | /* run_state: when to invalidate / re-run */ _NEW_MODELVIEW| _NEW_PROJECTION| - _NEW_TRANSFORM, /* re-run */ + _NEW_PROGRAM| + _NEW_TRANSFORM, GL_TRUE, /* active */ VERT_BIT_POS, /* inputs */ VERT_BIT_EYE|VERT_BIT_CLIP, /* outputs */ |