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
This commit is contained in:
Spoike 2014-03-30 13:03:02 +00:00
parent cef708e7af
commit 4a88b21e11

View file

@ -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];