mirror of https://github.com/libsdl-org/SDL.git
Call SDL_DiscardAllCommands() for the software renderer as well
This commit is contained in:
parent
8f4c5e15f1
commit
1a38960eee
|
|
@ -5217,9 +5217,8 @@ void SDL_DestroyRendererWithoutFreeing(SDL_Renderer *renderer)
|
||||||
if (renderer->software) {
|
if (renderer->software) {
|
||||||
// Make sure all drawing to a surface is complete
|
// Make sure all drawing to a surface is complete
|
||||||
FlushRenderCommands(renderer);
|
FlushRenderCommands(renderer);
|
||||||
} else {
|
|
||||||
SDL_DiscardAllCommands(renderer);
|
|
||||||
}
|
}
|
||||||
|
SDL_DiscardAllCommands(renderer);
|
||||||
|
|
||||||
if (renderer->debug_char_texture_atlas) {
|
if (renderer->debug_char_texture_atlas) {
|
||||||
SDL_DestroyTexture(renderer->debug_char_texture_atlas);
|
SDL_DestroyTexture(renderer->debug_char_texture_atlas);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue