st/mesa: unmap upload buffer after uploading indices and constants

This commit is contained in:
Marek Olšák
2012-04-30 20:56:25 +02:00
parent 3ed72dd31d
commit 8c5ff5a41f
2 changed files with 2 additions and 0 deletions

View File

@@ -81,6 +81,7 @@ void st_upload_constants( struct st_context *st,
cb.user_buffer = NULL;
u_upload_data(st->constbuf_uploader, 0, paramBytes,
params->ParameterValues, &cb.buffer_offset, &cb.buffer);
u_upload_unmap(st->constbuf_uploader);
} else {
cb.buffer = NULL;
cb.user_buffer = params->ParameterValues;