source/Game.cpp: call PlatformApplication::get() and dont delete the pointer.
This commit is contained in:
parent
c7d380c4b0
commit
83f4d05df8
1 changed files with 1 additions and 2 deletions
|
|
@ -15,7 +15,7 @@ namespace sp {
|
||||||
Game::Game() :
|
Game::Game() :
|
||||||
m_running(false)
|
m_running(false)
|
||||||
{
|
{
|
||||||
m_platform = PlatformApplication::create();
|
m_platform = PlatformApplication::get();
|
||||||
m_graphics = new Graphics(m_platform);
|
m_graphics = new Graphics(m_platform);
|
||||||
m_input = new InputModule(&m_platform->getInput());
|
m_input = new InputModule(&m_platform->getInput());
|
||||||
m_messageHandler = new MessageHandler();
|
m_messageHandler = new MessageHandler();
|
||||||
|
|
@ -29,7 +29,6 @@ Game::~Game()
|
||||||
|
|
||||||
// TODO: This is abit ugly tbh.
|
// TODO: This is abit ugly tbh.
|
||||||
m_platform->shutdown();
|
m_platform->shutdown();
|
||||||
delete m_platform;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void Game::run()
|
void Game::run()
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue