Scroll to navigation

SDL_GL_UnbindTexture(3) SDL3 FUNCTIONS SDL_GL_UnbindTexture(3)

NAME

SDL_GL_UnbindTexture - Unbind an OpenGL/ES/ES2 texture from the current context.

SYNOPSIS

#include "SDL3/SDL.h"
int SDL_GL_UnbindTexture(SDL_Texture *texture);

DESCRIPTION

See SDL_GL_BindTexture () for examples on how to use these functions

FUNCTION PARAMETERS

the texture to unbind from the current OpenGL/ES/ES2 context

RETURN VALUE

Returns 0 on success or a negative error code on failure; call

SDL_GetError () for more information.

AVAILABILITY

This function is available since SDL 3.0.0.

SEE ALSO

SDL_GL_BindTexture(3), SDL_GL_MakeCurrent(3)

SDL 3.0.0 SDL