MCPcopy Create free account
hub / github.com/RavEngine/RavEngine / SDL_GL_UnbindTexture

Function SDL_GL_UnbindTexture

deps/SDL2/src/render/SDL_render.c:3269–3283  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3267}
3268
3269int SDL_GL_UnbindTexture(SDL_Texture *texture)
3270{
3271 SDL_Renderer *renderer;
3272
3273 CHECK_TEXTURE_MAGIC(texture, -1);
3274 renderer = texture->renderer;
3275 if (texture->native) {
3276 return SDL_GL_UnbindTexture(texture->native);
3277 } else if (renderer && renderer->GL_UnbindTexture) {
3278 FlushRenderCommandsIfTextureNeeded(texture); /* in case the app messed with it. */
3279 return renderer->GL_UnbindTexture(renderer, texture);
3280 }
3281
3282 return SDL_Unsupported();
3283}
3284
3285void *
3286SDL_RenderGetMetalLayer(SDL_Renderer * renderer)

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected