mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-08 17:48:10 +02:00
util: Fix typo in u_upload_flush().
upload->offset is how much we used. upload->size is the whole buffer size.
This commit is contained in:
parent
b6c9c78bff
commit
f0ea6395b6
1 changed files with 2 additions and 2 deletions
|
|
@ -85,9 +85,9 @@ void u_upload_flush( struct u_upload_mgr *upload )
|
|||
{
|
||||
/* Unmap and unreference the upload buffer. */
|
||||
if (upload->transfer) {
|
||||
if (upload->size) {
|
||||
if (upload->offset) {
|
||||
pipe_buffer_flush_mapped_range(upload->pipe, upload->transfer,
|
||||
0, upload->size);
|
||||
0, upload->offset);
|
||||
}
|
||||
pipe_transfer_unmap(upload->pipe, upload->transfer);
|
||||
pipe_transfer_destroy(upload->pipe, upload->transfer);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue