mesa: Move check for vbo mapping into api_validate.c.
authorMathias Fröhlich <mathias.froehlich@web.de>
Sun, 14 Aug 2016 12:03:58 +0000 (14:03 +0200)
committerMathias Fröhlich <mathias.froehlich@web.de>
Mon, 15 Aug 2016 05:10:39 +0000 (07:10 +0200)
commit72f1566f90c434c7752d8405193eec68d6743246
treefc9e3dd3733a09b5247dd39156c769e554cea206
parentb7b0c51f1fd54c666e9520e1166e24216cc72211
mesa: Move check for vbo mapping into api_validate.c.

Instead of checking for mapped buffers in vbo_bind_arrays
do this check in api_validate.c. This additionally
enables printing the draw calls name into the error
string.

Signed-off-by: Mathias Fröhlich <Mathias.Froehlich@web.de>
Reviewed-by: Brian Paul <brianp@vmware.com>
Reviewed-by: Eric Anholt <eric@anholt.net>
src/mesa/main/api_validate.c
src/mesa/vbo/vbo_exec_array.c