-/* $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
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;
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 );
}
{
"modelview/project/cliptest/divide",
0, /* re-check -- always on */
+ _MESA_NEW_NEED_EYE_COORDS |
_NEW_MODELVIEW|
_NEW_PROJECTION|
_NEW_TRANSFORM, /* re-run */