Blast-Radius Aware AI Code Review for Business-Critical Systems
LiveReview LiveReview Explore LiveReview

SDL_DestroySurface - Free a surface.

Availability

       This function is available since SDL 3.2.0.

Description

       It is safe to pass NULL to this function.

Function Parameters

surface
              the SDL_Surface to free.

Name

       SDL_DestroySurface - Free a surface.

See Also

SDL_CreateSurface(3), SDL_CreateSurfaceFrom(3)

Simple Directmedia Layer                           SDL 3.2.20                              SDL_DestroySurface(3)

Synopsis

#include<SDL3/SDL_surface.h>voidSDL_DestroySurface(SDL_Surface*surface);

Thread Safety

       No other thread should be using the surface when it is freed.

See Also