mirror of
https://github.com/libsdl-org/SDL.git
synced 2025-09-06 11:28:15 +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) {
|
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);
|
||||||
|
Reference in New Issue
Block a user