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:
Ryan C. Gordon 2024-07-04 19:45:37 -04:00
parent 9f8dffbd2d
commit f9a06c20ed
No known key found for this signature in database
GPG key ID: FA148B892AB48044

View file

@ -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 */