projects
/
mesa.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
mesa: allow buffers mapped with the persistent flag to be used by the GPU
[mesa.git]
/
src
/
mesa
/
main
/
api_validate.c
diff --git
a/src/mesa/main/api_validate.c
b/src/mesa/main/api_validate.c
index af469e046fce66c982b669df370e44b7eb4f3603..ce007e265981aa43cbd219be6fbc8828628238bc 100644
(file)
--- a/
src/mesa/main/api_validate.c
+++ b/
src/mesa/main/api_validate.c
@@
-865,7
+865,7
@@
valid_draw_indirect(struct gl_context *ctx,
return GL_FALSE;
}
- if (_mesa_
bufferobj_mapped
(ctx->DrawIndirectBuffer)) {
+ if (_mesa_
check_disallowed_mapping
(ctx->DrawIndirectBuffer)) {
_mesa_error(ctx, GL_INVALID_OPERATION,
"%s(DRAW_INDIRECT_BUFFER is mapped)", name);
return GL_FALSE;