projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a81cd67
)
vbo: Fix vbo_split_copy to pass correct max_index to draw.
author
Pauli Nieminen
<suokkos@gmail.com>
Sun, 21 Mar 2010 10:42:10 +0000
(12:42 +0200)
committer
Pauli Nieminen
<suokkos@gmail.com>
Sun, 21 Mar 2010 11:18:36 +0000
(13:18 +0200)
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
patch
|
blob
|
history
diff --git
a/src/mesa/vbo/vbo_split_copy.c
b/src/mesa/vbo/vbo_split_copy.c
index bce401744dae7509ab8d00877aa82267a8de8721..2ec7d9b0fe39a7ff6b4a5f702e4cc56c4d2c5ebc 100644
(file)
--- 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:
*/