diff options
author | Pauli Nieminen <[email protected]> | 2010-03-21 12:42:10 +0200 |
---|---|---|
committer | Pauli Nieminen <[email protected]> | 2010-03-21 13:18:36 +0200 |
commit | 9a7acbccfbc061322be493633d5c5bf4afd302b5 (patch) | |
tree | daa43eee2f424b3aff5086f472d0357e1ece35df /src/mesa/vbo | |
parent | a81cd67a4f37233319281a69385f07feaa97fd13 (diff) |
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.
Diffstat (limited to 'src/mesa/vbo')
-rw-r--r-- | src/mesa/vbo/vbo_split_copy.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mesa/vbo/vbo_split_copy.c b/src/mesa/vbo/vbo_split_copy.c index bce401744da..2ec7d9b0fe3 100644 --- a/src/mesa/vbo/vbo_split_copy.c +++ b/src/mesa/vbo/vbo_split_copy.c @@ -196,7 +196,7 @@ flush( struct copy_context *copy ) ©->dstib, GL_TRUE, 0, - copy->dstbuf_nr ); + copy->dstbuf_nr - 1 ); /* Reset all pointers: */ |