From 64ffc9540ba9c0208f8eca98996d03d632c33064 Mon Sep 17 00:00:00 2001 From: Brian Date: Mon, 29 Oct 2007 15:07:23 -0600 Subject: [PATCH] fix memcpy bugs --- src/mesa/pipe/softpipe/sp_surface.c | 4 ++-- 1 file 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; } -- 2.30.2