- added GC handling for all backend pointers in the map data.

GC is not active yet!
This commit is contained in:
Christoph Oelckers 2021-12-06 00:50:33 +01:00
parent db240ea2b0
commit 0dd756fa32
13 changed files with 45 additions and 28 deletions

View file

@ -145,6 +145,7 @@ bool PreBindTexture(FRenderState* state, FGameTexture*& tex, EUpscaleFlags& flag
void highTileSetup();
void FontCharCreated(FGameTexture* base, FGameTexture* untranslated);
void LoadVoxelModels();
void MarkMap();
DStatusBarCore* StatusBar;
@ -1054,6 +1055,7 @@ int RunGame()
StartScreen->Progress();
engineInit();
GC::AddMarkerFunc(MarkMap);
gi->app_init();
StartScreen->Progress();
G_ParseMapInfo();
@ -1382,6 +1384,7 @@ void GameInterface::FreeLevelData()
sector.Reset();
wall.Reset();
currentLevel = nullptr;
GC::FullGC();
}
//---------------------------------------------------------------------------