mirror of
https://github.com/raysan5/raylib.git
synced 2025-09-06 11:28:17 +00:00
Update textures.c
This commit is contained in:
@@ -2170,7 +2170,7 @@ Color *LoadImagePalette(Image image, int maxPaletteSize, int *colorsCount)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
UnloadImagePixels(pixels);
|
UnloadImageColors(pixels);
|
||||||
}
|
}
|
||||||
|
|
||||||
*colorsCount = palCount;
|
*colorsCount = palCount;
|
||||||
@@ -2187,7 +2187,7 @@ void UnloadImageColors(Color *colors)
|
|||||||
// Unload colors palette loaded with LoadImagePalette()
|
// Unload colors palette loaded with LoadImagePalette()
|
||||||
void UnloadImagePalette(Color *colors)
|
void UnloadImagePalette(Color *colors)
|
||||||
{
|
{
|
||||||
RL_FREE(palette);
|
RL_FREE(colors);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Get pixel data from image as Vector4 array (float normalized)
|
// Get pixel data from image as Vector4 array (float normalized)
|
||||||
|
Reference in New Issue
Block a user