source/Game.cpp: make sure we call init() and shutdown() for platform
This commit is contained in:
parent
197b4df87f
commit
60dd9bacb0
1 changed files with 6 additions and 1 deletions
|
|
@ -34,12 +34,17 @@ Game::~Game()
|
||||||
{
|
{
|
||||||
delete m_input;
|
delete m_input;
|
||||||
delete m_graphics;
|
delete m_graphics;
|
||||||
delete m_platform;
|
|
||||||
delete m_messageHandler;
|
delete m_messageHandler;
|
||||||
|
|
||||||
|
// TODO: This is abit ugly tbh.
|
||||||
|
m_platform->shutdown();
|
||||||
|
delete m_platform;
|
||||||
}
|
}
|
||||||
|
|
||||||
void Game::run()
|
void Game::run()
|
||||||
{
|
{
|
||||||
|
m_platform->init();
|
||||||
|
|
||||||
if (!m_graphics->init()) {
|
if (!m_graphics->init()) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue