Ver a proveniência

Correct issue when not supporting GIF format

pull/1306/head
raysan5 há 5 anos
ascendente
cometimento
3f4c6fee11
1 ficheiros alterados com 3 adições e 3 eliminações
  1. +3
    -3
      src/textures.c

+ 3
- 3
src/textures.c Ver ficheiro

@ -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?

Carregando…
Cancelar
Guardar