From 62f2a380e1332a590fca54f2fee93e5c55e05fe4 Mon Sep 17 00:00:00 2001 From: Eukara Date: Tue, 25 Feb 2020 00:30:34 +0000 Subject: [PATCH] Performance boost by correctly batching lightmaps. git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@5637 fc73d0e0-1445-4013-8a0c-d673dee63da5 --- engine/gl/gl_model.c | 1 + 1 file changed, 1 insertion(+) diff --git a/engine/gl/gl_model.c b/engine/gl/gl_model.c index 1cd4caa69..2f51cd46d 100644 --- a/engine/gl/gl_model.c +++ b/engine/gl/gl_model.c @@ -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++)