]> git.rm.cloudns.org Git - xonotic/darkplaces.git/commitdiff
don't skip nearclip plane in R_CullBox as it is possible that the view
authorhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Mon, 24 Feb 2014 23:44:45 +0000 (23:44 +0000)
committerhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Mon, 24 Feb 2014 23:44:45 +0000 (23:44 +0000)
is in ortho mode

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@12053 d7cf8633-e32d-0410-b094-e92efae38249

gl_rmain.c

index 1ebe76c788c9bf66384b804262d6edcdc8a2a8bd..db34414d2793f7012039eb5869112304c698299a 100644 (file)
@@ -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)
                {