summaryrefslogtreecommitdiffstats
path: root/src/mesa/vbo
diff options
context:
space:
mode:
authorMathias Fröhlich <mathias.froehlich@web.de>2016-08-14 14:03:58 +0200
committerMathias Fröhlich <mathias.froehlich@web.de>2016-08-15 07:10:39 +0200
commit72f1566f90c434c7752d8405193eec68d6743246 (patch)
treefc9e3dd3733a09b5247dd39156c769e554cea206 /src/mesa/vbo
parentb7b0c51f1fd54c666e9520e1166e24216cc72211 (diff)
downloadexternal_mesa3d-72f1566f90c434c7752d8405193eec68d6743246.zip
external_mesa3d-72f1566f90c434c7752d8405193eec68d6743246.tar.gz
external_mesa3d-72f1566f90c434c7752d8405193eec68d6743246.tar.bz2
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>
Diffstat (limited to 'src/mesa/vbo')
-rw-r--r--src/mesa/vbo/vbo_exec_array.c8
1 files changed, 1 insertions, 7 deletions
diff --git a/src/mesa/vbo/vbo_exec_array.c b/src/mesa/vbo/vbo_exec_array.c
index e1aa3ac..bfa9cd6 100644
--- a/src/mesa/vbo/vbo_exec_array.c
+++ b/src/mesa/vbo/vbo_exec_array.c
@@ -396,13 +396,7 @@ vbo_bind_arrays(struct gl_context *ctx)
}
}
- if (!_mesa_all_buffers_are_unmapped(ctx->Array.VAO)) {
- _mesa_error(ctx, GL_INVALID_OPERATION,
- "draw call (vertex buffers are mapped)");
- return false;
- } else {
- return true;
- }
+ return true;
}
/**