st/python: remove pipe_vertex_buffer::max_index
authorVinson Lee <vlee@vmware.com>
Mon, 14 Feb 2011 22:10:05 +0000 (14:10 -0800)
committerVinson Lee <vlee@vmware.com>
Mon, 14 Feb 2011 22:10:05 +0000 (14:10 -0800)
This is a follow-up to commit cdca3c58aa2d9549f5188910e2a77b438516714f.

src/gallium/state_trackers/python/p_context.i

index d694651eef77b9777c0357cca776c57cb7189fff..56681a02f004bd91d35e63c314535856bc0222c0 100644 (file)
@@ -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 */