diff options
author | Brian Paul <[email protected]> | 2002-10-31 17:14:16 +0000 |
---|---|---|
committer | Brian Paul <[email protected]> | 2002-10-31 17:14:16 +0000 |
commit | e0e6bd7ae11c40e5141b2fb700a3e4bc186e1357 (patch) | |
tree | 0a46871a9aa258ce83c2764ce778a8a4e9b8f275 | |
parent | 36481524bad56214fa5a00e5899293636f0d46d3 (diff) |
fix the occasional missing triangle bug
-rw-r--r-- | src/mesa/tnl/t_vb_program.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/mesa/tnl/t_vb_program.c b/src/mesa/tnl/t_vb_program.c index 86fe025fe1e..4776bb0c8be 100644 --- a/src/mesa/tnl/t_vb_program.c +++ b/src/mesa/tnl/t_vb_program.c @@ -1,8 +1,8 @@ -/* $Id: t_vb_program.c,v 1.15 2002/10/24 23:57:25 brianp Exp $ */ +/* $Id: t_vb_program.c,v 1.16 2002/10/31 17:14:16 brianp Exp $ */ /* * Mesa 3-D graphics library - * Version: 4.1 + * Version: 5.0 * * Copyright (C) 1999-2002 Brian Paul All Rights Reserved. * @@ -180,7 +180,7 @@ static GLboolean run_vp( GLcontext *ctx, struct gl_pipeline_stage *stage ) if (VB->Flag) { /* the traditional glBegin/glVertex/glEnd case */ for (attr = 0; attr < VERT_ATTRIB_MAX; attr++) { - if (VB->Flag[i] & (1 << attr)) { + if (attr == 0 || (VB->Flag[i] & (1 << attr))) { COPY_4V(machine->Registers[VP_INPUT_REG_START + attr], VB->AttribPtr[attr]->data[i]); } @@ -267,7 +267,6 @@ static GLboolean run_vp( GLcontext *ctx, struct gl_pipeline_stage *stage ) store->clipmask, &store->ormask, &store->andmask ); - } else { VB->NdcPtr = 0; |