From 57d8ed77ea63a68b9a630e0e03166a3eede68d52 Mon Sep 17 00:00:00 2001 From: Eric Wasylishen Date: Thu, 9 Feb 2017 17:33:34 -0700 Subject: [PATCH] light: CalcPoints: call SetupContributingFaces --- light/ltface.cc | 3 +++ 1 file changed, 3 insertions(+) diff --git a/light/ltface.cc b/light/ltface.cc index 649dca02..ddbb3078 100644 --- a/light/ltface.cc +++ b/light/ltface.cc @@ -471,6 +471,9 @@ CalcPoints(const modelinfo_t *modelinfo, const vec3_t offset, lightsurf_t *surf, */ TexCoordToWorld(surf->exactmid[0], surf->exactmid[1], &surf->texorg, surf->midpoint); VectorAdd(surf->midpoint, offset, surf->midpoint); + + // Get faces which could contribute to this one. + const auto contribFaces = SetupContributingFaces(bsp, face, EdgeToFaceMap); surf->width = (surf->texsize[0] + 1) * oversample; surf->height = (surf->texsize[1] + 1) * oversample;