aboutsummaryrefslogtreecommitdiffstats
path: root/src/mesa/main/renderbuffer.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/mesa/main/renderbuffer.c')
-rw-r--r--src/mesa/main/renderbuffer.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mesa/main/renderbuffer.c b/src/mesa/main/renderbuffer.c
index 8b9033f68bf..fa884c0de93 100644
--- a/src/mesa/main/renderbuffer.c
+++ b/src/mesa/main/renderbuffer.c
@@ -125,8 +125,8 @@ get_values_generic(struct gl_context *ctx, struct gl_renderbuffer *rb,
for (i = 0; i < count; i++) {
const void *src = rb->GetPointer(ctx, rb, x[i], y[i]);
-
- memcpy(values + i * format_bytes, src, format_bytes);
+ char *dst = (char *) values + i * format_bytes;
+ memcpy(dst, src, format_bytes);
}
}