From: havoc Date: Fri, 9 Feb 2007 04:36:48 +0000 (+0000) Subject: reenabled exact portal culling of surface triangles, because it was not bugged after all X-Git-Tag: xonotic-v0.1.0preview~3600 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=6a2c575936d3bc92becde71f6261a539038c52d5;p=xonotic%2Fdarkplaces.git reenabled exact portal culling of surface triangles, because it was not bugged after all git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@6814 d7cf8633-e32d-0410-b094-e92efae38249 --- diff --git a/portals.c b/portals.c index b53e14e9..fccaae93 100644 --- a/portals.c +++ b/portals.c @@ -339,9 +339,7 @@ static void Portal_RecursiveFlow (portalrecursioninfo_t *info, mleaf_t *leaf, in trimaxs[1] = max(v[1], max(v[4], v[7])); trimins[2] = min(v[2], min(v[5], v[8])); trimaxs[2] = max(v[2], max(v[5], v[8])); - // FIXME: Portal_PortalThroughPortalPlanes is - // nice, but it seems to fail on some polygons - if (BoxesOverlap(trimins, trimaxs, info->boxmins, info->boxmaxs))// && Portal_PortalThroughPortalPlanes(&portalplanes[firstclipplane], numclipplanes, v, 3, &portaltemppoints2[0][0], 256) > 0) + if (BoxesOverlap(trimins, trimaxs, info->boxmins, info->boxmaxs) && Portal_PortalThroughPortalPlanes(&portalplanes[firstclipplane], numclipplanes, v, 3, &portaltemppoints2[0][0], 256) > 0) { SETPVSBIT(info->surfacepvs, surfaceindex); info->surfacelist[info->numsurfaces++] = surfaceindex;