瀏覽代碼

REVIEWED #4206

pull/4233/head
Ray 9 月之前
父節點
當前提交
5af331d708
共有 2 個文件被更改,包括 2 次插入2 次删除
  1. +1
    -1
      src/rlgl.h
  2. +1
    -1
      src/rtextures.c

+ 1
- 1
src/rlgl.h 查看文件

@ -4993,7 +4993,7 @@ static int rlGetPixelDataSize(int width, int height, int format)
default: break;
}
float bytesPerPixel = (float)bpp/8.0f;
double bytesPerPixel = (double)bpp/8.0;
dataSize = (int)(bytesPerPixel*width*height); // Total data size in bytes
// Most compressed formats works on 4x4 blocks,

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

@ -5403,7 +5403,7 @@ int GetPixelDataSize(int width, int height, int format)
default: break;
}
float bytesPerPixel = (float)bpp/8.0f;
double bytesPerPixel = (double)bpp/8.0;
dataSize = (int)(bytesPerPixel*width*height); // Total data size in bytes
// Most compressed formats works on 4x4 blocks,

Loading…
取消
儲存