draw: do bounds checking of array elements (debug only)
authorBrian Paul <brianp@vmware.com>
Thu, 29 Jul 2010 23:24:20 +0000 (17:24 -0600)
committerBrian Paul <brianp@vmware.com>
Thu, 29 Jul 2010 23:25:54 +0000 (17:25 -0600)
commitb4c8de1ff24d4d5e2fe550da54249934320acab4
tree56b47cc876ab507d685277c12fd78fdf91107ac6
parentd88b6e19c14900f4cad94cf7a28d159369463108
draw: do bounds checking of array elements (debug only)

Make sure that all the element indexes actually lie inside the vertex
buffer.

Also, rename pipe_run() to pipe_run_elts() to be more specific.

And assert/check the vertex count for the non-indexed case.
src/gallium/auxiliary/draw/draw_pipe.c