mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-08 11:18:08 +02:00
mesa: Avoid void pointer arithmetic.
This commit is contained in:
parent
4236493899
commit
f62f976e3f
1 changed files with 2 additions and 1 deletions
|
|
@ -554,7 +554,8 @@ _mesa_get_compressed_teximage(GLcontext *ctx, GLenum target, GLint level,
|
||||||
GLuint bw, bh;
|
GLuint bw, bh;
|
||||||
_mesa_get_format_block_size(texImage->TexFormat, &bw, &bh);
|
_mesa_get_format_block_size(texImage->TexFormat, &bw, &bh);
|
||||||
for (i = 0; i < (texImage->Height + bh - 1) / bh; i++) {
|
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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue