Call SDL_DiscardAllCommands() for the software renderer as well
This commit is contained in:
1 parent
8f4c5e15f1
commit
1a38960eee
1 file changed
+1
-2
@@ -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