mirror of
https://github.com/raysan5/raylib.git
synced 2025-10-08 19:06:27 +00:00
Correct issue when not supporting GIF format
This commit is contained in:
@@ -372,9 +372,6 @@ Image LoadImageAnim(const char *fileName, int *frames)
|
|||||||
|
|
||||||
#if defined(SUPPORT_FILEFORMAT_GIF)
|
#if defined(SUPPORT_FILEFORMAT_GIF)
|
||||||
if (IsFileExtension(fileName, ".gif"))
|
if (IsFileExtension(fileName, ".gif"))
|
||||||
#else
|
|
||||||
if (false)
|
|
||||||
#endif
|
|
||||||
{
|
{
|
||||||
unsigned int dataSize = 0;
|
unsigned int dataSize = 0;
|
||||||
unsigned char *fileData = LoadFileData(fileName, &dataSize);
|
unsigned char *fileData = LoadFileData(fileName, &dataSize);
|
||||||
@@ -392,6 +389,9 @@ Image LoadImageAnim(const char *fileName, int *frames)
|
|||||||
RL_FREE(delays); // NOTE: Frames delays are discarded
|
RL_FREE(delays); // NOTE: Frames delays are discarded
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
#else
|
||||||
|
if (false) { }
|
||||||
|
#endif
|
||||||
else image = LoadImage(fileName);
|
else image = LoadImage(fileName);
|
||||||
|
|
||||||
// TODO: Support APNG animated images?
|
// TODO: Support APNG animated images?
|
||||||
|
Reference in New Issue
Block a user