further tweak to dlist change
[mesa.git] / src / mesa / tnl / t_vb_vertex.c
index ab08ac23c31b12412cf6d99eed85d0af3cd91073..d9baed3b0cafb3bf84d64527efee1e75b01ea3a0 100644 (file)
@@ -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 */