From 693935fbc09cde246e4a75414b8504f6594e8a27 Mon Sep 17 00:00:00 2001 From: havoc Date: Mon, 2 Sep 2002 06:46:43 +0000 Subject: [PATCH] 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 --- gl_backend.c | 2 ++ 1 file changed, 2 insertions(+) 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; -- 2.39.2