mirror of
https://github.com/Shpoike/Quakespasm.git
synced 2024-11-10 07:21:58 +00:00
fix early exit from R_ScaleView
This commit is contained in:
parent
9367828343
commit
7a64a9fdce
1 changed files with 3 additions and 3 deletions
|
@ -966,9 +966,6 @@ void R_ScaleView (void)
|
||||||
int scale;
|
int scale;
|
||||||
int srcx, srcy, srcw, srch;
|
int srcx, srcy, srcw, srch;
|
||||||
|
|
||||||
if (r_scale.value == 1)
|
|
||||||
return;
|
|
||||||
|
|
||||||
// copied from R_SetupGL()
|
// copied from R_SetupGL()
|
||||||
scale = CLAMP(1, (int)r_scale.value, 4);
|
scale = CLAMP(1, (int)r_scale.value, 4);
|
||||||
srcx = glx + r_refdef.vrect.x;
|
srcx = glx + r_refdef.vrect.x;
|
||||||
|
@ -976,6 +973,9 @@ void R_ScaleView (void)
|
||||||
srcw = r_refdef.vrect.width / scale;
|
srcw = r_refdef.vrect.width / scale;
|
||||||
srch = r_refdef.vrect.height / scale;
|
srch = r_refdef.vrect.height / scale;
|
||||||
|
|
||||||
|
if (scale == 1)
|
||||||
|
return;
|
||||||
|
|
||||||
// create render-to-texture texture if needed
|
// create render-to-texture texture if needed
|
||||||
if (!r_scaleview_texture)
|
if (!r_scaleview_texture)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue