st/python: Use index bias.
authorJosé Fonseca <jfonseca@vmware.com>
Mon, 19 Apr 2010 16:16:34 +0000 (18:16 +0200)
committerJosé Fonseca <jfonseca@vmware.com>
Mon, 19 Apr 2010 16:16:34 +0000 (18:16 +0200)
src/gallium/state_trackers/python/p_context.i

index 13c8d1a95e99f97055739ef1aac9ed4bdf975090..3c5509cb5e427c0fc3e06c836907099d1e3ec776 100644 (file)
@@ -312,22 +312,24 @@ struct st_context {
    }
 
    void draw_elements( struct pipe_resource *indexBuffer,
-                       unsigned indexSize,
+                       unsigned indexSize, int indexBias,
                        unsigned mode, unsigned start, unsigned count) 
    {
       $self->pipe->draw_elements($self->pipe, 
                                  indexBuffer, 
                                  indexSize, 
+                                 indexBias,
                                  mode, start, count);
    }
 
    void draw_range_elements( struct pipe_resource *indexBuffer,
-                             unsigned indexSize, unsigned minIndex, unsigned maxIndex,
+                             unsigned indexSize, int indexBias,
+                             unsigned minIndex, unsigned maxIndex,
                              unsigned mode, unsigned start, unsigned count)
    {
       $self->pipe->draw_range_elements($self->pipe, 
-                                       indexBuffer, 
-                                       indexSize, minIndex, maxIndex,
+                                       indexBuffer, indexSize, indexBias,
+                                       minIndex, maxIndex,
                                        mode, start, count);
    }