summaryrefslogtreecommitdiff
path: root/src/mesa
diff options
context:
space:
mode:
authorBrian Paul <brian.paul@tungstengraphics.com>1999-11-18 23:56:04 +0000
committerBrian Paul <brian.paul@tungstengraphics.com>1999-11-18 23:56:04 +0000
commit653c83b9b4d922f05767d7f96429863a76996093 (patch)
treeca29af85650ad44b8bc0d13193be842803babe9b /src/mesa
parenta65efe4b75683d1cced3ff27e732cd5c095661fa (diff)
two fixes in gl_DrawArrays (Andree Borrman)
Diffstat (limited to 'src/mesa')
-rw-r--r--src/mesa/main/varray.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/mesa/main/varray.c b/src/mesa/main/varray.c
index c22be59759..be7fc8798f 100644
--- a/src/mesa/main/varray.c
+++ b/src/mesa/main/varray.c
@@ -1,4 +1,4 @@
-/* $Id: varray.c,v 1.15 1999/11/12 04:57:05 kendallb Exp $ */
+/* $Id: varray.c,v 1.16 1999/11/18 23:56:04 brianp Exp $ */
/*
* Mesa 3-D graphics library
@@ -587,6 +587,8 @@ _mesa_DrawArrays(GLenum mode, GLint start, GLsizei count)
VB->Material = IM->Material;
VB->BoundsPtr = 0;
+ IM->v.Obj.size = ctx->Array.Vertex.Size; /* added by Andree Borrmann */
+
while (remaining > 0) {
GLint vbspace = VB_MAX - VB_START;
GLuint count, n;
@@ -673,6 +675,7 @@ _mesa_DrawArrays(GLenum mode, GLint start, GLsizei count)
/* Transform and render.
*/
gl_run_pipeline( VB );
+ gl_flush_vb( ctx, "DrawArrays" ); /* added by Andree Borrmann */
gl_reset_vb( VB );
ctx->Array.Flag[count] = ctx->Array.Flags;