diff options
author | Brian Paul <[email protected]> | 2011-04-20 12:04:25 -0600 |
---|---|---|
committer | Brian Paul <[email protected]> | 2011-04-20 12:04:25 -0600 |
commit | 42d377224af0fcf5a21269958ce5f96c4306c4fa (patch) | |
tree | 48c1890217fd6a02dded4976298c14deafb79a39 /src/mesa/main | |
parent | 2ea0aa4cd9eeea17b84860fd5ab7a70aabcf1efc (diff) |
mesa: fix void pointer arithmetic warning
Diffstat (limited to 'src/mesa/main')
-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 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); } } |