diff options
author | Marek Olšák <[email protected]> | 2012-04-30 20:56:25 +0200 |
---|---|---|
committer | Marek Olšák <[email protected]> | 2012-04-30 20:56:25 +0200 |
commit | 8c5ff5a41fa63634e2cc8037a0a601c60d233537 (patch) | |
tree | edcb217f409ceb4f87b99e2cdea1aa9cd73df62f /src/mesa/state_tracker/st_draw.c | |
parent | 3ed72dd31d45b66e54724dcd20bbbbb6875313c3 (diff) |
st/mesa: unmap upload buffer after uploading indices and constants
Diffstat (limited to 'src/mesa/state_tracker/st_draw.c')
-rw-r--r-- | src/mesa/state_tracker/st_draw.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/mesa/state_tracker/st_draw.c b/src/mesa/state_tracker/st_draw.c index cbf4e59fb6d..ab2290f2c9d 100644 --- a/src/mesa/state_tracker/st_draw.c +++ b/src/mesa/state_tracker/st_draw.c @@ -594,6 +594,7 @@ setup_index_buffer(struct st_context *st, else if (st->indexbuf_uploader) { u_upload_data(st->indexbuf_uploader, 0, ib->count * ibuffer->index_size, ib->ptr, &ibuffer->offset, &ibuffer->buffer); + u_upload_unmap(st->indexbuf_uploader); } else { /* indices are in user space memory */ |