| 237 | } |
| 238 | |
| 239 | static int |
| 240 | FlushRenderCommandsIfTextureNeeded(SDL_Texture *texture) |
| 241 | { |
| 242 | SDL_Renderer *renderer = texture->renderer; |
| 243 | if (texture->last_command_generation == renderer->render_command_generation) { |
| 244 | /* the current command queue depends on this texture, flush the queue now before it changes */ |
| 245 | return FlushRenderCommands(renderer); |
| 246 | } |
| 247 | return 0; |
| 248 | } |
| 249 | |
| 250 | static SDL_INLINE int |
| 251 | FlushRenderCommandsIfNotBatching(SDL_Renderer *renderer) |
no test coverage detected