1
0
Fork 0

source/Game.cpp: call PlatformApplication::get() and dont delete the pointer.

This commit is contained in:
Henrik Hautakoski 2022-09-12 21:13:04 +02:00
parent c7d380c4b0
commit 83f4d05df8

View file

@ -15,7 +15,7 @@ namespace sp {
Game::Game() :
m_running(false)
{
m_platform = PlatformApplication::create();
m_platform = PlatformApplication::get();
m_graphics = new Graphics(m_platform);
m_input = new InputModule(&m_platform->getInput());
m_messageHandler = new MessageHandler();
@ -29,7 +29,6 @@ Game::~Game()
// TODO: This is abit ugly tbh.
m_platform->shutdown();
delete m_platform;
}
void Game::run()