mirror of
https://github.com/libsdl-org/SDL.git
synced 2025-10-03 00:18:28 +00:00
Only free debug_char_texture_atlas if it has been allocated
Fixes https://github.com/libsdl-org/SDL/issues/11254
This commit is contained in:
@@ -5098,8 +5098,10 @@ void SDL_DestroyRendererWithoutFreeing(SDL_Renderer *renderer)
|
|||||||
|
|
||||||
SDL_DiscardAllCommands(renderer);
|
SDL_DiscardAllCommands(renderer);
|
||||||
|
|
||||||
|
if (renderer->debug_char_texture_atlas) {
|
||||||
SDL_DestroyTexture(renderer->debug_char_texture_atlas);
|
SDL_DestroyTexture(renderer->debug_char_texture_atlas);
|
||||||
renderer->debug_char_texture_atlas = NULL;
|
renderer->debug_char_texture_atlas = NULL;
|
||||||
|
}
|
||||||
|
|
||||||
// Free existing textures for this renderer
|
// Free existing textures for this renderer
|
||||||
while (renderer->textures) {
|
while (renderer->textures) {
|
||||||
|
Reference in New Issue
Block a user