From: Brian Paul Date: Mon, 21 Jan 2013 15:59:25 +0000 (-0700) Subject: swrast: fix incorrect width for direct/nearest blit X-Git-Tag: mesa-9.1-rc1~209 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=b70b4862491121d5cc4444cea34f2f86a3aa5ded;p=platform%2Fupstream%2Fmesa.git swrast: fix incorrect width for direct/nearest blit Reviewed-by: José Fonseca --- diff --git a/src/mesa/swrast/s_blit.c b/src/mesa/swrast/s_blit.c index 605c80a..08ec5e2 100644 --- a/src/mesa/swrast/s_blit.c +++ b/src/mesa/swrast/s_blit.c @@ -347,7 +347,7 @@ blit_nearest(struct gl_context *ctx, /* store pixel row in destination */ switch (mode) { case DIRECT: - memcpy(dstRowStart, dstBuffer, pixelSize * srcWidth); + memcpy(dstRowStart, dstBuffer, pixelSize * dstWidth); break; case UNPACK_RGBA_FLOAT: _mesa_pack_float_rgba_row(drawRb->Format, dstWidth, dstBuffer,