vbo: Fix vbo_split_copy to pass correct max_index to draw.
authorPauli Nieminen <suokkos@gmail.com>
Sun, 21 Mar 2010 10:42:10 +0000 (12:42 +0200)
committerPauli Nieminen <suokkos@gmail.com>
Sun, 21 Mar 2010 11:18:36 +0000 (13:18 +0200)
commit9a7acbccfbc061322be493633d5c5bf4afd302b5
treedaa43eee2f424b3aff5086f472d0357e1ece35df
parenta81cd67a4f37233319281a69385f07feaa97fd13
vbo: Fix vbo_split_copy to pass correct max_index to draw.

vbo_split_copy was passing one past the max_index to draw function
which caused _tnl_draw_prims function to read uninitialized values
from copied array.

Bug was spoted in valgrind report of progs/tests/cva_huge.
src/mesa/vbo/vbo_split_copy.c