two fixes in gl_DrawArrays (Andree Borrman)
authorBrian Paul <brian.paul@tungstengraphics.com>
Thu, 18 Nov 1999 23:56:04 +0000 (23:56 +0000)
committerBrian Paul <brian.paul@tungstengraphics.com>
Thu, 18 Nov 1999 23:56:04 +0000 (23:56 +0000)
src/mesa/main/varray.c

index c22be597594c2366ffbb74dd0e01aa01ac7190c7..be7fc8798fc5af5d12e269f8f81c5e2268207542 100644 (file)
@@ -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;