Free a surface.
Defined in <SDL3/SDL_surface.h>
void SDL_DestroySurface(SDL_Surface *surface);
SDL_Surface * | surface | the SDL_Surface to free. |
It is safe to pass NULL to this function.
No other thread should be using the surface when it is freed.
This function is available since SDL 3.2.0.