mirror of
https://github.com/raysan5/raylib.git
synced 2025-10-25 20:06:58 +00:00
MSVC: Fix void pointer arithmetic error
GNU C allows it as a compiler extension, but MSVC doesn't.
This commit is contained in:
@@ -1114,7 +1114,7 @@ void ImageMipmaps(Image *image)
|
|||||||
else TraceLog(LOG_WARNING, "Mipmaps required memory could not be allocated");
|
else TraceLog(LOG_WARNING, "Mipmaps required memory could not be allocated");
|
||||||
|
|
||||||
// Pointer to allocated memory point where store next mipmap level data
|
// 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;
|
mipWidth = image->width/2;
|
||||||
mipHeight = image->height/2;
|
mipHeight = image->height/2;
|
||||||
|
|||||||
Reference in New Issue
Block a user