X-Git-Url: https://git.libre-soc.org/?a=blobdiff_plain;f=src%2Fmesa%2Ftnl%2Ft_vb_vertex.c;h=d9baed3b0cafb3bf84d64527efee1e75b01ea3a0;hb=cd1cefae9146fc14b35ee93a04bdb1b1590fba7b;hp=ab08ac23c31b12412cf6d99eed85d0af3cd91073;hpb=22144ab7552f0799bcfca506bf4ffa7f70a06649;p=mesa.git diff --git a/src/mesa/tnl/t_vb_vertex.c b/src/mesa/tnl/t_vb_vertex.c index ab08ac23c31..d9baed3b0ca 100644 --- a/src/mesa/tnl/t_vb_vertex.c +++ b/src/mesa/tnl/t_vb_vertex.c @@ -1,4 +1,4 @@ -/* $Id: t_vb_vertex.c,v 1.7 2001/03/12 00:48:44 gareth Exp $ */ +/* $Id: t_vb_vertex.c,v 1.9 2001/05/30 10:01:41 keithw Exp $ */ /* * Mesa 3-D graphics library @@ -137,12 +137,10 @@ static GLboolean run_vertex_stage( GLcontext *ctx, TNLcontext *tnl = TNL_CONTEXT(ctx); struct vertex_buffer *VB = &tnl->vb; - if (stage->changed_inputs) - { -/* VB->ObjPtr->size = 4; */ + if (stage->changed_inputs) { if (ctx->_NeedEyeCoords) { - /* Seperate modelview and project transformations: + /* Separate modelview and project transformations: */ if (ctx->ModelView.type == MATRIX_IDENTITY) VB->EyePtr = VB->ObjPtr; @@ -156,14 +154,14 @@ static GLboolean run_vertex_stage( GLcontext *ctx, VB->ClipPtr = TransformRaw( &store->clip, &ctx->ProjectionMatrix, VB->EyePtr ); } - else - { + else { /* Combined modelviewproject transform: */ if (ctx->_ModelProjectMatrix.type == MATRIX_IDENTITY) VB->ClipPtr = VB->ObjPtr; else - VB->ClipPtr = TransformRaw( &store->clip, &ctx->_ModelProjectMatrix, + VB->ClipPtr = TransformRaw( &store->clip, + &ctx->_ModelProjectMatrix, VB->ObjPtr ); } @@ -305,6 +303,7 @@ const struct gl_pipeline_stage _tnl_vertex_transform_stage = { "modelview/project/cliptest/divide", 0, /* re-check -- always on */ + _MESA_NEW_NEED_EYE_COORDS | _NEW_MODELVIEW| _NEW_PROJECTION| _NEW_TRANSFORM, /* re-run */