fix early exit from R_ScaleView

This commit is contained in:
Eric Wasylishen 2017-05-24 13:25:00 -06:00
parent 9367828343
commit 7a64a9fdce
1 changed files with 3 additions and 3 deletions

View File

@ -966,9 +966,6 @@ void R_ScaleView (void)
int scale;
int srcx, srcy, srcw, srch;
if (r_scale.value == 1)
return;
// copied from R_SetupGL()
scale = CLAMP(1, (int)r_scale.value, 4);
srcx = glx + r_refdef.vrect.x;
@ -976,6 +973,9 @@ void R_ScaleView (void)
srcw = r_refdef.vrect.width / scale;
srch = r_refdef.vrect.height / scale;
if (scale == 1)
return;
// create render-to-texture texture if needed
if (!r_scaleview_texture)
{