瀏覽代碼

add warning log multiple of 4 (#4080)

pull/4092/head
Anthony Carbajal 7 月之前
committed by GitHub
父節點
當前提交
0d59235ade
沒有發現已知的金鑰在資料庫的簽署中 GPG 金鑰 ID: B5690EEEBB952194
共有 1 個檔案被更改,包括 4 行新增0 行删除
  1. +4
    -0
      src/external/rl_gputex.h

+ 4
- 0
src/external/rl_gputex.h 查看文件

@ -171,6 +171,10 @@ void *rl_load_dds_from_memory(const unsigned char *file_data, unsigned int file_
*width = header->width;
*height = header->height;
if (*width % 4 != 0) LOG("WARNING: IMAGE: DDS file width must be multiple of 4. Image will not display correctly");
if (*height % 4 != 0) LOG("WARNING: IMAGE: DDS file height must be multiple of 4. Image will not display correctly");
image_pixel_size = header->width*header->height;
if (header->mipmap_count == 0) *mips = 1; // Parameter not used

Loading…
取消
儲存