mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-07 21:40:20 +01:00
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.
This commit is contained in:
parent
3889556d70
commit
4ff3244457
1 changed files with 1 additions and 1 deletions
|
|
@ -196,7 +196,7 @@ flush( struct copy_context *copy )
|
|||
©->dstib,
|
||||
GL_TRUE,
|
||||
0,
|
||||
copy->dstbuf_nr );
|
||||
copy->dstbuf_nr - 1 );
|
||||
|
||||
/* Reset all pointers:
|
||||
*/
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue