mirror of
https://github.com/libsdl-org/SDL.git
synced 2025-09-05 19:08:12 +00:00
Call SDL_DiscardAllCommands() for the software renderer as well
This commit is contained in:
@@ -5217,9 +5217,8 @@ void SDL_DestroyRendererWithoutFreeing(SDL_Renderer *renderer)
|
||||
if (renderer->software) {
|
||||
// Make sure all drawing to a surface is complete
|
||||
FlushRenderCommands(renderer);
|
||||
} else {
|
||||
SDL_DiscardAllCommands(renderer);
|
||||
}
|
||||
SDL_DiscardAllCommands(renderer);
|
||||
|
||||
if (renderer->debug_char_texture_atlas) {
|
||||
SDL_DestroyTexture(renderer->debug_char_texture_atlas);
|
||||
|
Reference in New Issue
Block a user