---
name: "SDL_RemoveSurfaceAlternateImages"
section: "3"
platform: "linux"
package: "libsdl3-doc"
version: "3.2.10+ds-1"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/SDL_RemoveSurfaceAlternateImages"
---

# SDL\_RemoveSurfaceAlternateImages(3)

Remove all alternate versions of a surface.

## NAME

SDL\_RemoveSurfaceAlternateImages - Remove all alternate versions of a surface.

## HEADER FILE

Defined in SDL3/SDL\_surface.h

## SYNOPSIS

```
#include "SDL3/SDL.h"
```

**void SDL\_RemoveSurfaceAlternateImages(SDL\_Surface \*surface);**

## DESCRIPTION

This function removes a reference from all the alternative versions, destroying them if this is the last reference to them.

## FUNCTION PARAMETERS

- *surface*

  the  **SDL\_Surface**\
    structure to update.

## THREAD SAFETY

This function is not thread safe.

## AVAILABILITY

This function is available since SDL 3.2.0.

## SEE ALSO

**•**(3), [**SDL\_AddSurfaceAlternateImage**(3)](/SDL_AddSurfaceAlternateImage/3.md), **•**(3), [**SDL\_GetSurfaceImages**(3)](/SDL_GetSurfaceImages/3.md), **•**(3), [**SDL\_SurfaceHasAlternateImages**(3)](/SDL_SurfaceHasAlternateImages/3.md)
