From 1f599e62c66922529d478174ebfff136e28e5859 Mon Sep 17 00:00:00 2001 From: smallmodel <15067410+smallmodel@users.noreply.github.com> Date: Sun, 19 Jan 2025 17:31:50 +0100 Subject: [PATCH] Clear numLightmaps in renderergl2 --- code/renderergl2/tr_bsp.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/code/renderergl2/tr_bsp.c b/code/renderergl2/tr_bsp.c index d1003fb9..92d76d40 100644 --- a/code/renderergl2/tr_bsp.c +++ b/code/renderergl2/tr_bsp.c @@ -248,6 +248,8 @@ static void R_LoadLightmaps( lump_t *l, lump_t *surfs ) { float maxIntensity = 0; double sumIntensity = 0; + tr.numLightmaps = 0; + len = l->filelen; if ( !len ) { return;