util: fix copy_rect stride in default transfer_inline_write
authorKeith Whitwell <keithw@vmware.com>
Sat, 8 May 2010 13:16:46 +0000 (14:16 +0100)
committerKeith Whitwell <keithw@vmware.com>
Fri, 14 May 2010 11:19:28 +0000 (12:19 +0100)
src/gallium/auxiliary/util/u_transfer.c

index bedace3b1dcdb2c3f18404685b4ccfe2e5bbd187..69f6fab9504e62870031a27095a37da55db87a67 100644 (file)
@@ -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: