1
0
Fork 0
forked from fte/fteqw

------------------------------------------------------------------------

r4231 | acceptthis | 2013-02-27 16:21:03 +0000 (Wed, 27 Feb 2013) | 1 line

fix a couple of pvs issues.
------------------------------------------------------------------------


git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@4227 fc73d0e0-1445-4013-8a0c-d673dee63da5
This commit is contained in:
Spoike 2013-03-12 23:11:08 +00:00
parent e8e230d98c
commit c38a4f753c

View file

@ -386,6 +386,7 @@ static void SHM_BeginShadowMesh(dlight_t *dl, qboolean surfonly)
dl->worldshadowmesh = sh_shmesh;
}
memset(sh_shmesh->litleaves, 0, sh_shmesh->leafbytes);
dl->rebuildcache = false;
}
else
@ -956,7 +957,8 @@ static void SHM_RecursiveWorldNodeQ3_r (dlight_t *dl, mnode_t *node)
if (node->contents != -1)
{
leaf = (mleaf_t *)node;
SHM_Shadow_Cache_Leaf(leaf);
if (leaf->cluster >= 0)
sh_shmesh->litleaves[leaf->cluster>>3] |= 1<<(leaf->cluster&7);
// mark the polygons
msurf = leaf->firstmarksurface;