diff options
author | Keith Whitwell <[email protected]> | 2001-05-16 09:28:32 +0000 |
---|---|---|
committer | Keith Whitwell <[email protected]> | 2001-05-16 09:28:32 +0000 |
commit | dbd0dad580a6bf501441df95fccf2db718fd5d45 (patch) | |
tree | 685981bd51a5528ce8f2075eb982a8875b865353 /src/mesa/tnl/t_imm_fixup.c | |
parent | c47a5327d38a978324361a8b1e4201253645da0c (diff) |
fix for Jouk's glplanet bug
Diffstat (limited to 'src/mesa/tnl/t_imm_fixup.c')
-rw-r--r-- | src/mesa/tnl/t_imm_fixup.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/mesa/tnl/t_imm_fixup.c b/src/mesa/tnl/t_imm_fixup.c index 0f555d43e29..126aba10068 100644 --- a/src/mesa/tnl/t_imm_fixup.c +++ b/src/mesa/tnl/t_imm_fixup.c @@ -1,4 +1,4 @@ -/* $Id: t_imm_fixup.c,v 1.18 2001/05/14 16:34:24 keithw Exp $ */ +/* $Id: t_imm_fixup.c,v 1.19 2001/05/16 09:28:32 keithw Exp $ */ /* * Mesa 3-D graphics library @@ -824,8 +824,8 @@ void _tnl_upgrade_current_data( GLcontext *ctx, GLuint flags ) { TNLcontext *tnl = TNL_CONTEXT(ctx); - struct immediate *IM = TNL_CURRENT_IM(ctx); /* hmmm */ struct vertex_buffer *VB = &tnl->vb; + struct immediate *IM = (struct immediate *)VB->import_source; ASSERT(IM); @@ -840,6 +840,9 @@ void _tnl_upgrade_current_data( GLcontext *ctx, tmp->Flags = 0; COPY_4FV( IM->Color[start], ctx->Current.Color); + + ASSERT(IM->Flag[IM->LastData+1] & VERT_END_VB); + fixup_first_4f( IM->Color, IM->Flag, VERT_END_VB, start, IM->Color[start] ); |