mirror of
https://github.com/libsdl-org/SDL.git
synced 2026-04-04 14:49:40 +00:00
Revert "render: Set renderer->window to NULL in SDL_DestroyRendererWithoutFreeing."
This reverts commit9f8dffbd2d. 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...?) (cherry picked from commitf9a06c20ed)
This commit is contained in:
@@ -4392,7 +4392,6 @@ void SDL_DestroyRendererWithoutFreeing(SDL_Renderer *renderer)
|
||||
|
||||
if (renderer->window) {
|
||||
SDL_SetWindowData(renderer->window, SDL_WINDOWRENDERDATA, NULL);
|
||||
renderer->window = NULL;
|
||||
}
|
||||
|
||||
/* Free the target mutex */
|
||||
|
||||
Reference in New Issue
Block a user