diff options
author | José Fonseca <[email protected]> | 2009-11-27 15:58:02 +0000 |
---|---|---|
committer | José Fonseca <[email protected]> | 2009-11-27 17:06:12 +0000 |
commit | f62f976e3ff9ff83d760e706c615e098d131e103 (patch) | |
tree | 3d27bb3da68eb771c46b245a888835646a587c91 /src/mesa | |
parent | 4236493899b9ccfcc8df3dcf81697776621fa1f8 (diff) |
mesa: Avoid void pointer arithmetic.
Diffstat (limited to 'src/mesa')
-rw-r--r-- | src/mesa/main/texgetimage.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/mesa/main/texgetimage.c b/src/mesa/main/texgetimage.c index 008407210d9..23765d27530 100644 --- a/src/mesa/main/texgetimage.c +++ b/src/mesa/main/texgetimage.c @@ -554,7 +554,8 @@ _mesa_get_compressed_teximage(GLcontext *ctx, GLenum target, GLint level, GLuint bw, bh; _mesa_get_format_block_size(texImage->TexFormat, &bw, &bh); for (i = 0; i < (texImage->Height + bh - 1) / bh; i++) { - memcpy(img + i * row_stride, texImage->Data + i * row_stride_stored, row_stride); + memcpy((GLubyte *)img + i * row_stride, + (GLubyte *)texImage->Data + i * row_stride_stored, row_stride); } } |