mirror of
https://github.com/ZDoom/gzdoom-gles.git
synced 2024-11-29 07:22:07 +00:00
Move openings deinit to r_memory
This commit is contained in:
parent
e0f1fc4066
commit
4bcc34f01c
3 changed files with 11 additions and 8 deletions
|
@ -102,7 +102,6 @@ static void R_ShutdownRenderer();
|
||||||
|
|
||||||
// EXTERNAL DATA DECLARATIONS ----------------------------------------------
|
// EXTERNAL DATA DECLARATIONS ----------------------------------------------
|
||||||
|
|
||||||
extern short *openings;
|
|
||||||
extern int fuzzviewheight;
|
extern int fuzzviewheight;
|
||||||
|
|
||||||
|
|
||||||
|
@ -391,13 +390,7 @@ static void R_ShutdownRenderer()
|
||||||
R_DeinitSprites();
|
R_DeinitSprites();
|
||||||
R_DeinitPlanes();
|
R_DeinitPlanes();
|
||||||
Clip3DFloors::Instance()->Cleanup();
|
Clip3DFloors::Instance()->Cleanup();
|
||||||
// Free openings
|
R_DeinitOpenings();
|
||||||
if (openings != NULL)
|
|
||||||
{
|
|
||||||
M_Free (openings);
|
|
||||||
openings = NULL;
|
|
||||||
}
|
|
||||||
|
|
||||||
R_FreeDrawSegs();
|
R_FreeDrawSegs();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -61,4 +61,13 @@ namespace swrenderer
|
||||||
{
|
{
|
||||||
lastopening = 0;
|
lastopening = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void R_DeinitOpenings()
|
||||||
|
{
|
||||||
|
if (openings != nullptr)
|
||||||
|
{
|
||||||
|
M_Free(openings);
|
||||||
|
openings = nullptr;
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -19,4 +19,5 @@ namespace swrenderer
|
||||||
|
|
||||||
ptrdiff_t R_NewOpening(ptrdiff_t len);
|
ptrdiff_t R_NewOpening(ptrdiff_t len);
|
||||||
void R_FreeOpenings();
|
void R_FreeOpenings();
|
||||||
|
void R_DeinitOpenings();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue