Update rtextures.c
This commit is contained in:
parent
7fd2bf1a32
commit
73c9f72c52
1 changed files with 6 additions and 2 deletions
|
@ -296,7 +296,7 @@ Image LoadImageRaw(const char *fileName, int width, int height, int format, int
|
||||||
Image LoadImageAnim(const char *fileName, int *frames)
|
Image LoadImageAnim(const char *fileName, int *frames)
|
||||||
{
|
{
|
||||||
Image image = { 0 };
|
Image image = { 0 };
|
||||||
int frameCount = 1;
|
int frameCount = 0;
|
||||||
|
|
||||||
#if defined(SUPPORT_FILEFORMAT_GIF)
|
#if defined(SUPPORT_FILEFORMAT_GIF)
|
||||||
if (IsFileExtension(fileName, ".gif"))
|
if (IsFileExtension(fileName, ".gif"))
|
||||||
|
@ -320,7 +320,11 @@ Image LoadImageAnim(const char *fileName, int *frames)
|
||||||
#else
|
#else
|
||||||
if (false) { }
|
if (false) { }
|
||||||
#endif
|
#endif
|
||||||
else image = LoadImage(fileName);
|
else
|
||||||
|
{
|
||||||
|
image = LoadImage(fileName);
|
||||||
|
frameCount = 1;
|
||||||
|
}
|
||||||
|
|
||||||
// TODO: Support APNG animated images
|
// TODO: Support APNG animated images
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue