SDL_DestroySurface
Free a surface.
- Provided by: libsdl3-doc (Version: 3.4.2+ds-1ubuntu1)
- Source: libsdl3
- Report a bug
Free a surface.
#include <SDL3/SDL_surface.h>
void SDL_DestroySurface(SDL_Surface *surface);
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.