| 3251 | } |
| 3252 | |
| 3253 | int SDL_GL_BindTexture(SDL_Texture *texture, float *texw, float *texh) |
| 3254 | { |
| 3255 | SDL_Renderer *renderer; |
| 3256 | |
| 3257 | CHECK_TEXTURE_MAGIC(texture, -1); |
| 3258 | renderer = texture->renderer; |
| 3259 | if (texture->native) { |
| 3260 | return SDL_GL_BindTexture(texture->native, texw, texh); |
| 3261 | } else if (renderer && renderer->GL_BindTexture) { |
| 3262 | FlushRenderCommandsIfTextureNeeded(texture); /* in case the app is going to mess with it. */ |
| 3263 | return renderer->GL_BindTexture(renderer, texture, texw, texh); |
| 3264 | } else { |
| 3265 | return SDL_Unsupported(); |
| 3266 | } |
| 3267 | } |
| 3268 | |
| 3269 | int SDL_GL_UnbindTexture(SDL_Texture *texture) |
| 3270 | { |
nothing calls this directly
no test coverage detected