vbo: optimize validation for glMultiDrawElements
authorMarek Olšák <maraeo@gmail.com>
Wed, 27 Jun 2012 04:29:42 +0000 (06:29 +0200)
committerMarek Olšák <maraeo@gmail.com>
Thu, 28 Jun 2012 20:46:51 +0000 (22:46 +0200)
commitfcebb157f0eb6c2f374dee609a01b0b14856e7fc
tree71c4e05e724c27cc7e8365d0dfa467eded66de3f
parent62b971673950148eb949ba23d7fdc47debea16f0
vbo: optimize validation for glMultiDrawElements

Some parameters need to be checked only once.
check_valid_to_render needs to be called only once.

The validate function is based on the one for DrawElements.

Reviewed-by: Brian Paul <brianp@vmware.com>
src/mesa/main/api_validate.c
src/mesa/main/api_validate.h
src/mesa/vbo/vbo_exec_array.c