Performance boost by correctly batching lightmaps.

git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@5637 fc73d0e0-1445-4013-8a0c-d673dee63da5
This commit is contained in:
Eukara 2020-02-25 00:30:34 +00:00
parent fa62cd2678
commit 62f2a380e1

View file

@ -2916,6 +2916,7 @@ static void Mod_Batches_SplitLightmaps(model_t *mod, int lmmerge)
{
batch->lightmap[sty] = (surf->lightmaptexturenums[sty]>=0)?lmscale*(surf->lightmaptexturenums[sty]/lmmerge):surf->lightmaptexturenums[sty];
batch->lmlightstyle[sty] = surf->styles[sty];
batch->vtlightstyle[sty] = surf->vlstyles[sty];
}
for (j = 1; j < batch->maxmeshes; j++)