Fix the shadow data VBO not updating its lightmap UVs

This commit is contained in:
Magnus Norddahl 2025-05-10 01:52:24 +02:00
commit 6e5df8ef4c
3 changed files with 88 additions and 1 deletions

View file

@ -331,9 +331,15 @@ void DoomLevelMesh::BeginFrame(FLevelLocals& doomMap)
}
Flats[flatIndex].UpdateType = SurfaceUpdateType::None;
}
FlatUpdateList.Clear();
PackLightmapAtlas();
for (int flatIndex : FlatUpdateList)
{
UpdateVBOLightmap(*screen->RenderState(), &doomMap.sectors[flatIndex]);
}
FlatUpdateList.Clear();
UpdateWallPortals();
UploadDynLights(doomMap);