mirror of
https://github.com/raysan5/raylib.git
synced 2025-10-03 08:28:30 +00:00
Update rtextures.c
This commit is contained in:
@@ -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
|
||||
|
||||
|
Reference in New Issue
Block a user