summaryrefslogtreecommitdiffhomepage
path: root/src/textures.c
diff options
context:
space:
mode:
authorraysan5 <[email protected]>2020-07-10 17:24:37 +0200
committerraysan5 <[email protected]>2020-07-10 17:24:37 +0200
commit3f4c6fee11f6b2121066c6e366c7af8b02a1d232 (patch)
tree49fe494d6bd40df29d64327696f26333f5b92b18 /src/textures.c
parentc57323f29ccc207f53c52cfe3df7ac0db5f5c113 (diff)
downloadraylib-3f4c6fee11f6b2121066c6e366c7af8b02a1d232.tar.gz
raylib-3f4c6fee11f6b2121066c6e366c7af8b02a1d232.zip
Correct issue when not supporting GIF format
Diffstat (limited to 'src/textures.c')
-rw-r--r--src/textures.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/textures.c b/src/textures.c
index 087352c7..5dd54b5a 100644
--- a/src/textures.c
+++ b/src/textures.c
@@ -372,9 +372,6 @@ Image LoadImageAnim(const char *fileName, int *frames)
#if defined(SUPPORT_FILEFORMAT_GIF)
if (IsFileExtension(fileName, ".gif"))
-#else
- if (false)
-#endif
{
unsigned int dataSize = 0;
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
}
}
+#else
+ if (false) { }
+#endif
else image = LoadImage(fileName);
// TODO: Support APNG animated images?