Skip to content

Commit

Permalink
Revert "render: Set renderer->window to NULL in SDL_DestroyRendererWi…
Browse files Browse the repository at this point in the history
…thoutFreeing."

This reverts commit 9f8dffb.

This causes some tests to fail, and wasn't otherwise a necessary change, so
I'm backing it out.

(Looks like some sort of interaction with software renderers and their
surfaces not getting destroyed...?)
  • Loading branch information
icculus committed Jul 4, 2024
1 parent 9f8dffb commit f9a06c2
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/render/SDL_render.c
Original file line number Diff line number Diff line change
Expand Up @@ -4603,7 +4603,6 @@ void SDL_DestroyRendererWithoutFreeing(SDL_Renderer *renderer)

if (renderer->window) {
SDL_ClearProperty(SDL_GetWindowProperties(renderer->window), SDL_PROP_WINDOW_RENDERER_POINTER);
renderer->window = NULL;
}

/* Free the target mutex */
Expand Down

0 comments on commit f9a06c2

Please sign in to comment.