Sfoglia il codice sorgente

MSVC: Fix void pointer arithmetic error

GNU C allows it as a compiler extension, but MSVC doesn't.
pull/433/head
Ahmad Fatoum 7 anni fa
parent
commit
a2edc9d641
Non sono state trovate chiavi note per questa firma nel database ID Chiave GPG: C3EAC3DE9321D59B
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. +1
    -1
      src/textures.c

+ 1
- 1
src/textures.c Vedi File

@ -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 = p">(unsigned char *)image->data + GetPixelDataSize(image->width, image->height, image->format);
mipWidth = image->width/2;
mipHeight = image->height/2;

Caricamento…
Annulla
Salva