gallium/util: remove unused parameter nr_vertex_buffers in util_draw_max_index
authorMarek Olšák <maraeo@gmail.com>
Thu, 29 Mar 2012 22:20:16 +0000 (00:20 +0200)
committerMarek Olšák <maraeo@gmail.com>
Sat, 12 May 2012 21:13:45 +0000 (23:13 +0200)
src/gallium/auxiliary/draw/draw_pt.c
src/gallium/auxiliary/util/u_draw.c
src/gallium/auxiliary/util/u_draw.h

index 025d53989e48c2520a92fdf0ba3385b75d4bf860..dbe5e9470b2a41918afdf96fb40bdf4f9af4ac20 100644 (file)
@@ -505,7 +505,6 @@ draw_vbo(struct draw_context *draw,
       draw_print_arrays(draw, info->mode, info->start, MIN2(info->count, 20));
 
    index_limit = util_draw_max_index(draw->pt.vertex_buffer,
-                                     draw->pt.nr_vertex_buffers,
                                      draw->pt.vertex_element,
                                      draw->pt.nr_vertex_elements,
                                      info);
index 1f3eb887959ca619587335cfe01b9b21f413d48d..5b3c41231a2ed428f5a0b67ba1a71b31737b6122 100644 (file)
@@ -44,7 +44,6 @@
 unsigned
 util_draw_max_index(
       const struct pipe_vertex_buffer *vertex_buffers,
-      unsigned nr_vertex_buffers,
       const struct pipe_vertex_element *vertex_elements,
       unsigned nr_vertex_elements,
       const struct pipe_draw_info *info)
index fdb683ca8a290c49502d1ad3e7a178155af90705..3dc69181c134572889009c865281f3373aea910b 100644 (file)
@@ -145,7 +145,6 @@ util_draw_range_elements(struct pipe_context *pipe,
 unsigned
 util_draw_max_index(
       const struct pipe_vertex_buffer *vertex_buffers,
-      unsigned nr_vertex_buffers,
       const struct pipe_vertex_element *vertex_elements,
       unsigned nr_vertex_elements,
       const struct pipe_draw_info *info);