Get the renderer that created an SDL_Texture.
Defined in <SDL3/SDL_render.h>
SDL_Renderer * SDL_GetRendererFromTexture(SDL_Texture *texture);
SDL_Texture * | texture | the texture to query. |
(SDL_Renderer *) Returns a pointer to the SDL_Renderer that created the texture, or NULL on failure; call SDL_GetError() for more information.
It is safe to call this function from any thread.
This function is available since SDL 3.1.3.