瀏覽代碼

Added a note

pull/552/head
Ray San 6 年之前
父節點
當前提交
8f4fa5006b
共有 1 個文件被更改,包括 3 次插入1 次删除
  1. +3
    -1
      src/textures.c

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

@ -567,8 +567,10 @@ void ExportImage(const char *fileName, Image image)
{
// NOTE: Getting Color array as RGBA unsigned char values
unsigned char *imgData = (unsigned char *)GetImageData(image);
// NOTE: SavePNG() not supported by some platforms: PLATFORM_WEB, PLATFORM_ANDROID
SavePNG(fileName, imgData, image.width, image.height, 4);
// FIXME ^ this fails on PLATFORM_WEB, what should we do?
free(imgData);
}

Loading…
取消
儲存