actually set the max_index. useful in the driver
authorZack Rusin <zack@tungstengraphics.com>
Wed, 19 Dec 2007 12:49:42 +0000 (07:49 -0500)
committerZack Rusin <zack@tungstengraphics.com>
Wed, 19 Dec 2007 12:50:29 +0000 (07:50 -0500)
src/mesa/state_tracker/st_draw.c

index a3e061d6048fa006e9361ba28d1c360625db8dfe..b3d463043d41cffd3d1b7dbb37c80a128c7d5d88 100644 (file)
@@ -287,7 +287,7 @@ st_draw_vbo(GLcontext *ctx,
 
       /* common-case setup */
       vbuffer[attr].pitch = arrays[mesaAttr]->StrideB; /* in bytes */
-      vbuffer[attr].max_index = 0;  /* need this? */
+      vbuffer[attr].max_index = max_index;
       velement.vertex_buffer_index = attr;
       velement.nr_components = arrays[mesaAttr]->Size;
       velement.src_format = pipe_vertex_format(arrays[mesaAttr]->Type,
@@ -545,7 +545,7 @@ st_feedback_draw_vbo(GLcontext *ctx,
 
       /* common-case setup */
       vbuffer[attr].pitch = arrays[mesaAttr]->StrideB; /* in bytes */
-      vbuffer[attr].max_index = 0;  /* need this? */
+      vbuffer[attr].max_index = max_index;
       velement.vertex_buffer_index = attr;
       velement.nr_components = arrays[mesaAttr]->Size;
       velement.src_format = pipe_vertex_format(arrays[mesaAttr]->Type,