From 83df4a354eb8d060c9e35762dcf111a9f3a5cd5a Mon Sep 17 00:00:00 2001 From: Sylvain Date: Tue, 22 Mar 2022 15:25:01 +0100 Subject: [PATCH] SDL_render.c: remove unsused case, since renderer target has been forced to NULL previously (see bug #4213) --- src/render/SDL_render.c | 19 ++++++------------- 1 file changed, 6 insertions(+), 13 deletions(-) diff --git a/src/render/SDL_render.c b/src/render/SDL_render.c index e67a06cdc..441badbc6 100644 --- a/src/render/SDL_render.c +++ b/src/render/SDL_render.c @@ -728,19 +728,12 @@ SDL_RendererEventWatch(void *userdata, SDL_Event *event) SDL_GetWindowSize(renderer->window, &w, &h); } - if (renderer->target) { - renderer->viewport_backup.x = 0; - renderer->viewport_backup.y = 0; - renderer->viewport_backup.w = (float) w; - renderer->viewport_backup.h = (float) h; - } else { - renderer->viewport.x = 0; - renderer->viewport.y = 0; - renderer->viewport.w = (float) w; - renderer->viewport.h = (float) h; - QueueCmdSetViewport(renderer); - FlushRenderCommandsIfNotBatching(renderer); - } + renderer->viewport.x = 0; + renderer->viewport.y = 0; + renderer->viewport.w = (float) w; + renderer->viewport.h = (float) h; + QueueCmdSetViewport(renderer); + FlushRenderCommandsIfNotBatching(renderer); } if (saved_target) {