diff options
author | Brian Paul <brianp@vmware.com> | 2011-04-20 12:04:25 -0600 |
---|---|---|
committer | Brian Paul <brianp@vmware.com> | 2011-04-20 12:04:25 -0600 |
commit | 42d377224af0fcf5a21269958ce5f96c4306c4fa (patch) | |
tree | 48c1890217fd6a02dded4976298c14deafb79a39 | |
parent | 2ea0aa4cd9eeea17b84860fd5ab7a70aabcf1efc (diff) |
mesa: fix void pointer arithmetic warning
-rw-r--r-- | src/mesa/main/renderbuffer.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mesa/main/renderbuffer.c b/src/mesa/main/renderbuffer.c index 8b9033f68b..fa884c0de9 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); } } |