mirror of
https://github.com/ZDoom/gzdoom-gles.git
synced 2024-11-11 07:12:16 +00:00
- let M_ClearMenus destroy all open menus so that they can properly deinitialize.
This commit is contained in:
parent
fb52b034b0
commit
c0f588e234
1 changed files with 4 additions and 3 deletions
|
@ -766,13 +766,14 @@ void M_Drawer (void)
|
||||||
//
|
//
|
||||||
//=============================================================================
|
//=============================================================================
|
||||||
|
|
||||||
void M_ClearMenus ()
|
void M_ClearMenus()
|
||||||
{
|
{
|
||||||
M_DemoNoPlay = false;
|
M_DemoNoPlay = false;
|
||||||
if (CurrentMenu != nullptr)
|
while (CurrentMenu != nullptr)
|
||||||
{
|
{
|
||||||
|
DMenu* parent = CurrentMenu->mParentMenu;
|
||||||
CurrentMenu->Destroy();
|
CurrentMenu->Destroy();
|
||||||
CurrentMenu = nullptr;
|
CurrentMenu = parent;
|
||||||
}
|
}
|
||||||
V_SetBorderNeedRefresh();
|
V_SetBorderNeedRefresh();
|
||||||
menuactive = MENU_Off;
|
menuactive = MENU_Off;
|
||||||
|
|
Loading…
Reference in a new issue