mirror of https://github.com/encounter/SDL.git
SDL_render.c: remove unsused case, since renderer target has been forced to NULL previously (see bug #4213)
This commit is contained in:
parent
f782abe5f0
commit
83df4a354e
|
@ -728,12 +728,6 @@ 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;
|
||||
|
@ -741,7 +735,6 @@ SDL_RendererEventWatch(void *userdata, SDL_Event *event)
|
|||
QueueCmdSetViewport(renderer);
|
||||
FlushRenderCommandsIfNotBatching(renderer);
|
||||
}
|
||||
}
|
||||
|
||||
if (saved_target) {
|
||||
SDL_SetRenderTarget(renderer, saved_target);
|
||||
|
|
Loading…
Reference in New Issue