diff options
| author | Ray <[email protected]> | 2020-12-19 00:01:14 +0100 |
|---|---|---|
| committer | Ray <[email protected]> | 2020-12-19 00:01:14 +0100 |
| commit | c36a6f3d9f1b9e29e41bdbdeb4e36c9cd108ec82 (patch) | |
| tree | 39b4379c01bf12ab8fd42753e3d77f5c4df52009 /src | |
| parent | e07bc372a1109cc782b940162c2aedb5defc0ba8 (diff) | |
| download | raylib-c36a6f3d9f1b9e29e41bdbdeb4e36c9cd108ec82.tar.gz raylib-c36a6f3d9f1b9e29e41bdbdeb4e36c9cd108ec82.zip | |
Update textures.c
Diffstat (limited to 'src')
| -rw-r--r-- | src/textures.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/textures.c b/src/textures.c index 89d6b063..ad34d9c3 100644 --- a/src/textures.c +++ b/src/textures.c @@ -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) |
