Update textures.c
This commit is contained in:
parent
e07bc372a1
commit
c36a6f3d9f
1 changed files with 2 additions and 2 deletions
|
@ -2170,7 +2170,7 @@ Color *LoadImagePalette(Image image, int maxPaletteSize, int *colorsCount)
|
|||
}
|
||||
}
|
||||
|
||||
UnloadImagePixels(pixels);
|
||||
UnloadImageColors(pixels);
|
||||
}
|
||||
|
||||
*colorsCount = palCount;
|
||||
|
@ -2187,7 +2187,7 @@ void UnloadImageColors(Color *colors)
|
|||
// Unload colors palette loaded with LoadImagePalette()
|
||||
void UnloadImagePalette(Color *colors)
|
||||
{
|
||||
RL_FREE(palette);
|
||||
RL_FREE(colors);
|
||||
}
|
||||
|
||||
// Get pixel data from image as Vector4 array (float normalized)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue