SDL_UnlockSurface - Man Page
Release a surface after directly accessing the pixels.
Synopsis
#include <SDL3/SDL_surface.h> void SDL_UnlockSurface(SDL_Surface *surface);
Function Parameters
- surface
the SDL_Surface structure to be unlocked.
Thread Safety
This function is not thread safe. The locking referred to by this function is making the pixels available for direct access, not thread-safe locking.
Availability
This function is available since SDL 3.2.0.
See Also
Referenced By
SDL_LockSurface(3), SDL_SetSurfaceRLE(3).
SDL 3.2.16 Simple Directmedia Layer SDL3 FUNCTIONS