MSVC: Fix void pointer arithmetic error
GNU C allows it as a compiler extension, but MSVC doesn't.
This commit is contained in:
parent
ce9f191f1b
commit
a2edc9d641
1 changed files with 1 additions and 1 deletions
|
@ -1114,7 +1114,7 @@ void ImageMipmaps(Image *image)
|
|||
else TraceLog(LOG_WARNING, "Mipmaps required memory could not be allocated");
|
||||
|
||||
// Pointer to allocated memory point where store next mipmap level data
|
||||
unsigned char *nextmip = image->data + GetPixelDataSize(image->width, image->height, image->format);
|
||||
unsigned char *nextmip = (unsigned char *)image->data + GetPixelDataSize(image->width, image->height, image->format);
|
||||
|
||||
mipWidth = image->width/2;
|
||||
mipHeight = image->height/2;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue