---
name: "SDL_GetRendererFromTexture"
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_GetRendererFromTexture"
---

# SDL\_GetRendererFromTexture(3)

Get the renderer that created an SDL\_Texture .

## NAME

SDL\_GetRendererFromTexture - Get the renderer that created an  **SDL\_Texture** .

## HEADER FILE

Defined in SDL3/SDL\_render.h

## SYNOPSIS

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

**SDL\_Renderer \* SDL\_GetRendererFromTexture(SDL\_Texture \*texture);**

## FUNCTION PARAMETERS

- *texture*

  the texture to query.

## RETURN VALUE

( **SDL\_Renderer**\
  \*) Returns a pointer to the

**SDL\_Renderer**\
  that created the texture, or NULL on failure; call  **SDL\_GetError** () for more information.

## THREAD SAFETY

It is safe to call this function from any thread.

## AVAILABILITY

This function is available since SDL 3.2.0.
