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

Function FlushRenderCommandsIfTextureNeeded

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

Source from the content-addressed store, hash-verified

237}
238
239static int
240FlushRenderCommandsIfTextureNeeded(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
250static SDL_INLINE int
251FlushRenderCommandsIfNotBatching(SDL_Renderer *renderer)

Callers 6

SDL_UpdateTextureFunction · 0.85
SDL_UpdateYUVTextureFunction · 0.85
SDL_LockTextureFunction · 0.85
SDL_DestroyTextureFunction · 0.85
SDL_GL_BindTextureFunction · 0.85
SDL_GL_UnbindTextureFunction · 0.85

Calls 1

FlushRenderCommandsFunction · 0.85

Tested by

no test coverage detected