Clean up _tnl_Begin/begin/hard_begin.

Fix some problems with draw_arrays, draw_elements.
This commit is contained in:
Keith Whitwell
2001-05-11 15:53:06 +00:00
parent b8f9980999
commit c6083e1dc4
6 changed files with 149 additions and 143 deletions

View File

@@ -1,4 +1,4 @@
/* $Id: t_array_import.c,v 1.15 2001/05/11 08:11:31 keithw Exp $ */
/* $Id: t_array_import.c,v 1.16 2001/05/11 15:53:06 keithw Exp $ */
/*
* Mesa 3-D graphics library
@@ -492,6 +492,7 @@ void _tnl_fill_immediate_drawarrays( GLcontext *ctx, struct immediate *IM,
}
IM->Count = IM->Start + n;
IM->Flag[IM->Start] &= IM->ArrayEltFlags;
IM->Flag[IM->Start] |= required;
for (i = IM->Start+1 ; i < IM->Count ; i++)
IM->Flag[i] = required;