Move openings deinit to r_memory

This commit is contained in:
Magnus Norddahl 2017-01-04 19:13:58 +01:00
commit 4bcc34f01c
3 changed files with 11 additions and 8 deletions

View file

@ -102,7 +102,6 @@ static void R_ShutdownRenderer();
// EXTERNAL DATA DECLARATIONS ----------------------------------------------
extern short *openings;
extern int fuzzviewheight;
@ -391,13 +390,7 @@ static void R_ShutdownRenderer()
R_DeinitSprites();
R_DeinitPlanes();
Clip3DFloors::Instance()->Cleanup();
// Free openings
if (openings != NULL)
{
M_Free (openings);
openings = NULL;
}
R_DeinitOpenings();
R_FreeDrawSegs();
}