mirror of
https://github.com/libsdl-org/SDL.git
synced 2026-05-31 22:42:52 +08:00
render: Set renderer->window to NULL in SDL_DestroyRendererWithoutFreeing.
This wasn't triggering a bug afaik, but obviously the more correct thing to do. Reference Issue #10174.
This commit is contained in:
@@ -4603,6 +4603,7 @@ 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 */
|
||||||
|
|||||||
Reference in New Issue
Block a user