From: havoc Date: Mon, 2 Sep 2002 06:46:43 +0000 (+0000) Subject: make sure zFar is at least 64 units to avoid feeding a bogus value to glFrustum X-Git-Tag: RELEASE_0_2_0_RC1~278 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=693935fbc09cde246e4a75414b8504f6594e8a27;p=xonotic%2Fdarkplaces.git make sure zFar is at least 64 units to avoid feeding a bogus value to glFrustum git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@2326 d7cf8633-e32d-0410-b094-e92efae38249 --- diff --git a/gl_backend.c b/gl_backend.c index dec7eebe..05ebc12b 100644 --- a/gl_backend.c +++ b/gl_backend.c @@ -308,6 +308,8 @@ static void GL_SetupFrame (void) // depth range zNear = 1.0; zFar = r_mesh_farclip; + if (zFar < 64) + zFar = 64; // fov angles fovx = r_refdef.fov_x;