vbo: if 'end' is out of bounds, clamp it
authorBrian Paul <brianp@vmware.com>
Tue, 26 Jan 2010 19:49:44 +0000 (12:49 -0700)
committerBrian Paul <brianp@vmware.com>
Tue, 26 Jan 2010 19:49:48 +0000 (12:49 -0700)
commitcbecb8fc8e85cfafed7fd8fd0e2dd1143efcf62b
treebbbd69b7c998717d0e75ec11b8972258b11c2abf
parent645e297a0019eb2f7513bd801ffdaac03187f29f
vbo: if 'end' is out of bounds, clamp it

If we determine that the 'end' parameter to glDrawElements() is out of
bounds, clamp it to the max legal index value.
src/mesa/vbo/vbo_exec_array.c