From: havoc Date: Mon, 24 Feb 2014 23:44:45 +0000 (+0000) Subject: don't skip nearclip plane in R_CullBox as it is possible that the view X-Git-Tag: xonotic-v0.8.1~29^2~105 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=8be0763b241d161604c351684c74532a716ec17c;p=xonotic%2Fdarkplaces.git don't skip nearclip plane in R_CullBox as it is possible that the view is in ortho mode git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@12053 d7cf8633-e32d-0410-b094-e92efae38249 --- diff --git a/gl_rmain.c b/gl_rmain.c index 1ebe76c7..db34414d 100644 --- a/gl_rmain.c +++ b/gl_rmain.c @@ -4493,9 +4493,6 @@ int R_CullBox(const vec3_t mins, const vec3_t maxs) return false; for (i = 0;i < r_refdef.view.numfrustumplanes;i++) { - // skip nearclip plane, it often culls portals when you are very close, and is almost never useful - if (i == 4) - continue; p = r_refdef.view.frustum + i; switch(p->signbits) {