]> git.xonotic.org Git - xonotic/darkplaces.git/commitdiff
fix a bug with svbsp compiled lights when a leaf has no portals -
authorhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Wed, 14 Jul 2010 10:10:46 +0000 (10:10 +0000)
committerRudolf Polzer <divverent@alientrap.org>
Thu, 15 Jul 2010 19:11:55 +0000 (21:11 +0200)
however the leaf is assumed visible, not good

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10316 d7cf8633-e32d-0410-b094-e92efae38249
::stable-branch::merge=47ffdacec654457c5ed96ee15bb10bc3998b2ff4

gl_rsurf.c

index e70c8d0a5eb69b3ffac6b210f7b2a17d36d21201..d3b941aa04d2d98246487e4b5371bdb3fc166686 100644 (file)
@@ -739,7 +739,7 @@ static void R_Q1BSP_RecursiveGetLightInfo(r_q1bsp_getlightinfo_t *info, mnode_t
                        if (SVBSP_AddPolygon(&r_svbsp, portal->numpoints, points[0], false, NULL, NULL, 0) & 2)
                                break;
                }
-               if (portal == NULL)
+               if (leaf->portals && portal == NULL)
                        return; // no portals of this leaf visible
        }
        if (info->svbsp_insertoccluder)