Fix crash when switching from a level with lightmaps to one without

This commit is contained in:
Magnus Norddahl 2025-01-19 12:36:40 +01:00
commit d435c9c144
6 changed files with 18 additions and 6 deletions

View file

@ -238,6 +238,10 @@ DoomLevelMesh::DoomLevelMesh(FLevelLocals& doomMap)
r_viewpoint.camera = oldcamera;
}
DoomLevelMesh::~DoomLevelMesh()
{
}
void DoomLevelMesh::SetLimits(FLevelLocals& doomMap)
{
// Try to estimate what the worst case memory needs are for the level