mirror of
https://github.com/luanti-org/luanti.git
synced 2025-10-12 16:15:20 +02:00
Move rendering engine reset after deletion of game objects
This commit is contained in:
@@ -1113,6 +1113,8 @@ Game::~Game()
|
|||||||
&settingChangedCallback, this);
|
&settingChangedCallback, this);
|
||||||
g_settings->deregisterChangedCallback("camera_smoothing",
|
g_settings->deregisterChangedCallback("camera_smoothing",
|
||||||
&settingChangedCallback, this);
|
&settingChangedCallback, this);
|
||||||
|
if (m_rendering_engine)
|
||||||
|
m_rendering_engine->finalize();
|
||||||
}
|
}
|
||||||
|
|
||||||
bool Game::startup(bool *kill,
|
bool Game::startup(bool *kill,
|
||||||
@@ -1289,8 +1291,6 @@ void Game::run()
|
|||||||
|
|
||||||
void Game::shutdown()
|
void Game::shutdown()
|
||||||
{
|
{
|
||||||
m_rendering_engine->finalize();
|
|
||||||
|
|
||||||
auto formspec = m_game_ui->getFormspecGUI();
|
auto formspec = m_game_ui->getFormspecGUI();
|
||||||
if (formspec)
|
if (formspec)
|
||||||
formspec->quitMenu();
|
formspec->quitMenu();
|
||||||
|
Reference in New Issue
Block a user