summaryrefslogtreecommitdiffstats
path: root/src/mesa/swrast/s_blit.c
diff options
context:
space:
mode:
authorBrian Paul <brianp@vmware.com>2013-01-21 08:59:25 -0700
committerBrian Paul <brianp@vmware.com>2013-01-22 14:53:58 -0700
commitb70b4862491121d5cc4444cea34f2f86a3aa5ded (patch)
tree179ee94f46f61209647cc81093d4b0a7fe634d52 /src/mesa/swrast/s_blit.c
parent728bf86a23f6de137c0871ea87b09e75e55468a9 (diff)
downloadexternal_mesa3d-b70b4862491121d5cc4444cea34f2f86a3aa5ded.zip
external_mesa3d-b70b4862491121d5cc4444cea34f2f86a3aa5ded.tar.gz
external_mesa3d-b70b4862491121d5cc4444cea34f2f86a3aa5ded.tar.bz2
swrast: fix incorrect width for direct/nearest blit
Reviewed-by: José Fonseca <jfonseca@vmware.com>
Diffstat (limited to 'src/mesa/swrast/s_blit.c')
-rw-r--r--src/mesa/swrast/s_blit.c2
1 files changed, 1 insertions, 1 deletions
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,