From: Vinson Lee Date: Mon, 14 Feb 2011 22:10:05 +0000 (-0800) Subject: st/python: remove pipe_vertex_buffer::max_index X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=ec21eabe2a343b875c4c23b410fea8bfc204f917;p=mesa.git st/python: remove pipe_vertex_buffer::max_index This is a follow-up to commit cdca3c58aa2d9549f5188910e2a77b438516714f. --- diff --git a/src/gallium/state_trackers/python/p_context.i b/src/gallium/state_trackers/python/p_context.i index d694651eef7..56681a02f00 100644 --- a/src/gallium/state_trackers/python/p_context.i +++ b/src/gallium/state_trackers/python/p_context.i @@ -268,7 +268,6 @@ struct st_context { void set_vertex_buffer(unsigned index, unsigned stride, - unsigned max_index, unsigned buffer_offset, struct pipe_resource *buffer) { @@ -277,7 +276,6 @@ struct st_context { memset(&state, 0, sizeof(state)); state.stride = stride; - state.max_index = max_index; state.buffer_offset = buffer_offset; state.buffer = buffer; @@ -378,7 +376,6 @@ struct st_context { vbuffer.buffer = vbuf; vbuffer.stride = num_attribs * 4 * sizeof(float); /* vertex size */ vbuffer.buffer_offset = 0; - vbuffer.max_index = num_verts - 1; pipe->set_vertex_buffers(pipe, 1, &vbuffer); /* draw */