summaryrefslogtreecommitdiffstats
path: root/src/mesa/state_tracker/st_draw.c
diff options
context:
space:
mode:
authorZack Rusin <[email protected]>2007-12-19 07:49:42 -0500
committerZack Rusin <[email protected]>2007-12-19 07:50:29 -0500
commitf13a200c8367c58fc962bdad9bcb22263d385886 (patch)
tree5c6975af86f2946c527d58c77b7511a33435c144 /src/mesa/state_tracker/st_draw.c
parentf367c57802f3800f695acae975fdc30ece6a63b3 (diff)
actually set the max_index. useful in the driver
Diffstat (limited to 'src/mesa/state_tracker/st_draw.c')
-rw-r--r--src/mesa/state_tracker/st_draw.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mesa/state_tracker/st_draw.c b/src/mesa/state_tracker/st_draw.c
index a3e061d6048..b3d463043d4 100644
--- a/src/mesa/state_tracker/st_draw.c
+++ b/src/mesa/state_tracker/st_draw.c
@@ -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,