projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4236493
)
mesa: Avoid void pointer arithmetic.
author
José Fonseca
<jfonseca@vmware.com>
Fri, 27 Nov 2009 15:58:02 +0000
(15:58 +0000)
committer
José Fonseca
<jfonseca@vmware.com>
Fri, 27 Nov 2009 17:06:12 +0000
(17:06 +0000)
src/mesa/main/texgetimage.c
patch
|
blob
|
history
diff --git
a/src/mesa/main/texgetimage.c
b/src/mesa/main/texgetimage.c
index 008407210d91e95fb0cab9f74af02d55a727f097..23765d275305b1b5a5ebbdd56e107e17c725e560 100644
(file)
--- 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);
}
}