diff options
| author | Ray <[email protected]> | 2023-02-25 22:32:50 +0100 |
|---|---|---|
| committer | Ray <[email protected]> | 2023-02-25 22:32:50 +0100 |
| commit | 73c9f72c5229808fc564c878bd876d0f693f757d (patch) | |
| tree | 4a9462a37a5cb8a987ca703c45d2efca5d2d00ea /src | |
| parent | 7fd2bf1a32c3ed7c932fe7c020858ecadb3b2056 (diff) | |
| download | raylib-73c9f72c5229808fc564c878bd876d0f693f757d.tar.gz raylib-73c9f72c5229808fc564c878bd876d0f693f757d.zip | |
Update rtextures.c
Diffstat (limited to 'src')
| -rw-r--r-- | src/rtextures.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/rtextures.c b/src/rtextures.c index 7ae96c67..f9b5c862 100644 --- a/src/rtextures.c +++ b/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 |
