SDL_render.c: remove unsused case, since renderer target has been forced to NULL previously (see bug #4213)

This commit is contained in:
Sylvain 2022-03-22 15:25:01 +01:00
parent f782abe5f0
commit 83df4a354e
No known key found for this signature in database
GPG Key ID: 5F87E02E5BC0939E
1 changed files with 6 additions and 13 deletions

View File

@ -728,19 +728,12 @@ SDL_RendererEventWatch(void *userdata, SDL_Event *event)
SDL_GetWindowSize(renderer->window, &w, &h); SDL_GetWindowSize(renderer->window, &w, &h);
} }
if (renderer->target) { renderer->viewport.x = 0;
renderer->viewport_backup.x = 0; renderer->viewport.y = 0;
renderer->viewport_backup.y = 0; renderer->viewport.w = (float) w;
renderer->viewport_backup.w = (float) w; renderer->viewport.h = (float) h;
renderer->viewport_backup.h = (float) h; QueueCmdSetViewport(renderer);
} else { 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) { if (saved_target) {