瀏覽代碼

Update rtextures.c

pull/2975/head
Ray 1 年之前
父節點
當前提交
73c9f72c52
共有 1 個檔案被更改,包括 6 行新增2 行删除
  1. +6
    -2
      src/rtextures.c

+ 6
- 2
src/rtextures.c 查看文件

@ -296,7 +296,7 @@ Image LoadImageRaw(const char *fileName, int width, int height, int format, int
Image LoadImageAnim(const char *fileName, int *frames)
{
Image image = { 0 };
int frameCount = 1;
int frameCount = 0;
#if defined(SUPPORT_FILEFORMAT_GIF)
if (IsFileExtension(fileName, ".gif"))
@ -320,7 +320,11 @@ Image LoadImageAnim(const char *fileName, int *frames)
#else
if (false) { }
#endif
else image = LoadImage(fileName);
else
{
image = LoadImage(fileName);
frameCount = 1;
}
// TODO: Support APNG animated images

Loading…
取消
儲存