diff options
-rw-r--r-- | src/mesa/state_tracker/st_atom_array.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/mesa/state_tracker/st_atom_array.c b/src/mesa/state_tracker/st_atom_array.c index 9831045b340..cd00529ddf3 100644 --- a/src/mesa/state_tracker/st_atom_array.c +++ b/src/mesa/state_tracker/st_atom_array.c @@ -499,7 +499,8 @@ st_update_array(struct st_context *st) &vbuffer[bufidx].buffer_offset, &vbuffer[bufidx].buffer.resource); - if (!ctx->Const.AllowMappedBuffersDuringExecution) { + if (!ctx->Const.AllowMappedBuffersDuringExecution && + !st->can_bind_const_buffer_as_vertex) { u_upload_unmap(st->pipe->stream_uploader); } } |