diff options
author | Brian <[email protected]> | 2007-10-29 15:07:23 -0600 |
---|---|---|
committer | Brian <[email protected]> | 2007-10-29 15:15:34 -0600 |
commit | 64ffc9540ba9c0208f8eca98996d03d632c33064 (patch) | |
tree | 21366aaec607009588d5e20660c491fdfe0f43a0 /src/mesa/pipe | |
parent | 1553eba50c7a2577bce069a3400a29e4d49c0f31 (diff) |
fix memcpy bugs
Diffstat (limited to 'src/mesa/pipe')
-rw-r--r-- | src/mesa/pipe/softpipe/sp_surface.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mesa/pipe/softpipe/sp_surface.c b/src/mesa/pipe/softpipe/sp_surface.c index eeaf98ce36c..c18fe56f899 100644 --- a/src/mesa/pipe/softpipe/sp_surface.c +++ b/src/mesa/pipe/softpipe/sp_surface.c @@ -526,7 +526,7 @@ softpipe_get_tile(struct pipe_context *pipe, pDest = (ubyte *) p; for (i = 0; i < h; i++) { - memcpy(pDest, pSrc, w0 * cpp); + memcpy(pDest, pSrc, w * cpp); pDest += dst_stride; pSrc += ps->region->pitch * cpp; } @@ -560,7 +560,7 @@ softpipe_put_tile(struct pipe_context *pipe, pDest = ps->region->map + ps->offset + (y * ps->region->pitch + x) * cpp; for (i = 0; i < h; i++) { - memcpy(pDest, pSrc, w0 * cpp); + memcpy(pDest, pSrc, w * cpp); pDest += ps->region->pitch * cpp; pSrc += src_stride; } |