projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0c54d76
)
mesa: Fix pointer arithmetic.
author
Michal Krol
<michal@vmware.com>
Tue, 24 Nov 2009 10:17:16 +0000
(11:17 +0100)
committer
Michal Krol
<michal@vmware.com>
Tue, 24 Nov 2009 10:17:16 +0000
(11:17 +0100)
src/mesa/main/texgetimage.c
patch
|
blob
|
history
diff --git
a/src/mesa/main/texgetimage.c
b/src/mesa/main/texgetimage.c
index 008407210d91e95fb0cab9f74af02d55a727f097..bd7cc8d278033ecc621b2a68a13b7c54b5612db9 100644
(file)
--- a/
src/mesa/main/texgetimage.c
+++ b/
src/mesa/main/texgetimage.c
@@
-554,7
+554,9
@@
_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);
}
}