From 73c9f72c5229808fc564c878bd876d0f693f757d Mon Sep 17 00:00:00 2001 From: Ray Date: Sat, 25 Feb 2023 22:32:50 +0100 Subject: [PATCH 1/2] Update rtextures.c --- src/rtextures.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/rtextures.c b/src/rtextures.c index 7ae96c67f..f9b5c862d 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 From 394b31faffa0a1557f4860c31bc1168be0fc3022 Mon Sep 17 00:00:00 2001 From: Antonis Geralis <43617260+planetis-m@users.noreply.github.com> Date: Sun, 26 Feb 2023 13:01:42 +0200 Subject: [PATCH 2/2] Add GL_MIN GL_MAX blending equations (#2945) --- src/rlgl.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/rlgl.h b/src/rlgl.h index 7e9fee68a..66a349645 100644 --- a/src/rlgl.h +++ b/src/rlgl.h @@ -298,6 +298,8 @@ // GL blending functions/equations #define RL_FUNC_ADD 0x8006 // GL_FUNC_ADD +#define RL_MIN 0x8007 // GL_MIN +#define RL_MAX 0x8008 // GL_MAX #define RL_FUNC_SUBTRACT 0x800A // GL_FUNC_SUBTRACT #define RL_FUNC_REVERSE_SUBTRACT 0x800B // GL_FUNC_REVERSE_SUBTRACT #define RL_BLEND_EQUATION 0x8009 // GL_BLEND_EQUATION