]> git.rm.cloudns.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)
committerhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Wed, 14 Jul 2010 10:10:46 +0000 (10:10 +0000)
however the leaf is assumed visible, not good

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

gl_rsurf.c

index ccf050d8bbda6279a9b82dcc41b7ae16505e748d..bd084c162aba448d2def27aadf258cc24435e1a4 100644 (file)
@@ -737,7 +737,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)