From 4a88b21e119a91831b4141bf7be05b6ea6ca4e51 Mon Sep 17 00:00:00 2001 From: Spoike Date: Sun, 30 Mar 2014 13:03:02 +0000 Subject: [PATCH] fix stupid bug with vf_perspective 0 and maxdist 0. git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@4627 fc73d0e0-1445-4013-8a0c-d673dee63da5 --- engine/gl/gl_rmain.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/engine/gl/gl_rmain.c b/engine/gl/gl_rmain.c index d144a7c95..8e86e6f1f 100644 --- a/engine/gl/gl_rmain.c +++ b/engine/gl/gl_rmain.c @@ -467,7 +467,7 @@ void R_SetupGL (float stereooffset) if (gl_maxdist.value>=1) Matrix4x4_CM_Orthographic(r_refdef.m_projection, -fov_x/2, fov_x/2, -fov_y/2, fov_y/2, -gl_maxdist.value, gl_maxdist.value); else - Matrix4x4_CM_Orthographic(r_refdef.m_projection, 0, r_refdef.vrect.width, 0, r_refdef.vrect.height, -9999, 9999); + Matrix4x4_CM_Orthographic(r_refdef.m_projection, -fov_x/2, fov_x/2, -fov_y/2, fov_y/2, -9999, 9999); } newa[0] = r_refdef.viewangles[0];