mirror of
https://github.com/libsdl-org/SDL.git
synced 2025-05-18 10:48:28 +00:00
Revert "render: Set renderer->window to NULL in SDL_DestroyRendererWithoutFreeing."
This reverts commit 9f8dffbd2d
.
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...?)
This commit is contained in:
parent
9f8dffbd2d
commit
f9a06c20ed
1 changed files with 0 additions and 1 deletions
|
@ -4603,7 +4603,6 @@ void SDL_DestroyRendererWithoutFreeing(SDL_Renderer *renderer)
|
||||||
|
|
||||||
if (renderer->window) {
|
if (renderer->window) {
|
||||||
SDL_ClearProperty(SDL_GetWindowProperties(renderer->window), SDL_PROP_WINDOW_RENDERER_POINTER);
|
SDL_ClearProperty(SDL_GetWindowProperties(renderer->window), SDL_PROP_WINDOW_RENDERER_POINTER);
|
||||||
renderer->window = NULL;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Free the target mutex */
|
/* Free the target mutex */
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue