1
0
Fork 0

source/Game.cpp: make sure we call init() and shutdown() for platform

This commit is contained in:
Henrik Hautakoski 2020-12-25 17:13:47 +01:00
parent 197b4df87f
commit 60dd9bacb0

View file

@ -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;
} }