mirror of
https://github.com/raysan5/raylib.git
synced 2025-12-25 10:22:33 -05:00
REVIEWED: LoadImageAnimFromMemory() #3704
This commit is contained in:
@ -470,7 +470,6 @@ Image LoadImageAnimFromMemory(const char *fileType, const unsigned char *fileDat
|
|||||||
image.mipmaps = 1;
|
image.mipmaps = 1;
|
||||||
image.format = PIXELFORMAT_UNCOMPRESSED_R8G8B8A8;
|
image.format = PIXELFORMAT_UNCOMPRESSED_R8G8B8A8;
|
||||||
|
|
||||||
RL_FREE(fileData);
|
|
||||||
RL_FREE(delays); // NOTE: Frames delays are discarded
|
RL_FREE(delays); // NOTE: Frames delays are discarded
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -479,7 +478,7 @@ Image LoadImageAnimFromMemory(const char *fileType, const unsigned char *fileDat
|
|||||||
#endif
|
#endif
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
image = LoadImageFromMemory(fileType,fileData,dataSize);
|
image = LoadImageFromMemory(fileType, fileData, dataSize);
|
||||||
frameCount = 1;
|
frameCount = 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user