summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/nvc0_exa.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/nvc0_exa.c b/src/nvc0_exa.c
index 4f4e104..1938178 100644
--- a/src/nvc0_exa.c
+++ b/src/nvc0_exa.c
@@ -95,6 +95,7 @@ NVC0AccelDownloadM2MF(PixmapPtr pspix, int x, int y, int w, int h,
if (dst_pitch == line_len) {
memcpy(dst, src, dst_pitch * line_count);
+ dst += dst_pitch * line_count;
} else {
for (i = 0; i < line_count; ++i) {
memcpy(dst, src, line_len);