Somehow fix lightmaps being corrupted in debug build

This commit is contained in:
RaveYard 2023-09-10 21:49:00 +02:00 committed by Magnus Norddahl
commit 9ef93da6de
5 changed files with 46 additions and 47 deletions

View file

@ -369,8 +369,6 @@ void DoomLevelMesh::BindLightmapSurfacesToGeometry(FLevelLocals& doomMap)
{
surface.TexCoords = (float*)&LightmapUvs[surface.startUvIndex];
surface.LightmapNum = surface.atlasPageIndex;
if (surface.Type == ST_FLOOR || surface.Type == ST_CEILING)
{
surface.Subsector = &doomMap.subsectors[surface.typeIndex];