summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKeith Whitwell <keithw@vmware.com>2010-05-08 14:16:46 +0100
committerKeith Whitwell <keithw@vmware.com>2010-05-14 12:19:28 +0100
commitfc4d1b9ba965f26c504e6f5fea12e2bac2d71d72 (patch)
tree6cd3c3406cc6e2a07127f9ae3e9ceb0d2046ef08
parent52c554a79d3ed3104a9f7d112faa9129073b5a25 (diff)
util: fix copy_rect stride in default transfer_inline_write
-rw-r--r--src/gallium/auxiliary/util/u_transfer.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gallium/auxiliary/util/u_transfer.c b/src/gallium/auxiliary/util/u_transfer.c
index bedace3b1d..69f6fab950 100644
--- a/src/gallium/auxiliary/util/u_transfer.c
+++ b/src/gallium/auxiliary/util/u_transfer.c
@@ -35,12 +35,12 @@ void u_default_transfer_inline_write( struct pipe_context *pipe,
util_copy_rect(map,
resource->format,
- transfer->stride, /* bytes? */
+ transfer->stride, /* bytes */
0, 0,
box->width,
box->height,
data,
- box->width, /* bytes? texels? */
+ stride, /* bytes */
0, 0);
out: