mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-24 17:30:12 +01:00
actually set the max_index. useful in the driver
This commit is contained in:
parent
f367c57802
commit
f13a200c83
1 changed files with 2 additions and 2 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue