Properly unload screens before exiting, correcting a FIXME
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5957 178a84e3-b1eb-0310-8ba1-8eac791a3b58
This commit is contained in:
parent
197f693943
commit
4df28afc80
@ -325,8 +325,8 @@ void IrrDriver::doApplyResSettings()
|
||||
kart_properties_manager -> unloadAllKarts();
|
||||
powerup_manager -> unloadPowerups();
|
||||
GUIEngine::clear();
|
||||
GUIEngine::cleanUp(); //FIXME: cleanUp is not called when exiting normally, only when changing resolution!
|
||||
|
||||
GUIEngine::cleanUp();
|
||||
|
||||
//std::cout << "^^^^^^^^ Closing m_device ^^^^^^^^\n";
|
||||
m_device->closeDevice();
|
||||
//std::cout << "^^^^^^^^ Dropping m_device ^^^^^^^^\n";
|
||||
|
@ -215,6 +215,7 @@ void StateManager::onTopMostScreenChanged()
|
||||
|
||||
void StateManager::onStackEmptied()
|
||||
{
|
||||
GUIEngine::cleanUp();
|
||||
main_loop->abort();
|
||||
} // onStackEmptied
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user