Free a palette created with SDL_CreatePalette().
Defined in <SDL3/SDL_pixels.h>
void SDL_DestroyPalette(SDL_Palette *palette);
SDL_Palette * | palette | the SDL_Palette structure to be freed. |
It is safe to call this function from any thread, as long as the palette is not modified or destroyed in another thread.
This function is available since SDL 3.1.3.