Ver código fonte

MSVC: Fix void pointer arithmetic error

GNU C allows it as a compiler extension, but MSVC doesn't.
pull/433/head
Ahmad Fatoum 7 anos atrás
pai
commit
a2edc9d641
Nenhuma chave conhecida encontrada para esta assinatura no banco de dados ID da chave GPG: C3EAC3DE9321D59B
1 arquivos alterados com 1 adições e 1 exclusões
  1. +1
    -1
      src/textures.c

+ 1
- 1
src/textures.c Ver arquivo

@ -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;

Carregando…
Cancelar
Salvar