mirror of
https://github.com/raysan5/raylib.git
synced 2025-10-04 00:46:27 +00:00
REVIEWED: LoadImageAnim() #2005
This commit is contained in:
@@ -269,8 +269,8 @@ Image LoadImageAnim(const char *fileName, int *frames)
|
|||||||
if (fileData != NULL)
|
if (fileData != NULL)
|
||||||
{
|
{
|
||||||
int comp = 0;
|
int comp = 0;
|
||||||
int **delays = NULL;
|
int *delays = NULL;
|
||||||
image.data = stbi_load_gif_from_memory(fileData, dataSize, delays, &image.width, &image.height, &frameCount, &comp, 4);
|
image.data = stbi_load_gif_from_memory(fileData, dataSize, &delays, &image.width, &image.height, &frameCount, &comp, 4);
|
||||||
|
|
||||||
image.mipmaps = 1;
|
image.mipmaps = 1;
|
||||||
image.format = PIXELFORMAT_UNCOMPRESSED_R8G8B8A8;
|
image.format = PIXELFORMAT_UNCOMPRESSED_R8G8B8A8;
|
||||||
|
Reference in New Issue
Block a user