瀏覽代碼

MSVC: Fix void pointer arithmetic error

GNU C allows it as a compiler extension, but MSVC doesn't.
pull/433/head
Ahmad Fatoum 7 年之前
父節點
當前提交
a2edc9d641
沒有發現已知的金鑰在資料庫的簽署中 GPG 金鑰 ID: C3EAC3DE9321D59B
共有 1 個檔案被更改,包括 1 行新增1 行删除
  1. +1
    -1
      src/textures.c

+ 1
- 1
src/textures.c 查看文件

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

Loading…
取消
儲存