source/Game.cpp: in run() exit if graphics could not be initialized.
This commit is contained in:
parent
2a1851efb5
commit
976ddecd10
1 changed files with 3 additions and 1 deletions
|
|
@ -32,7 +32,9 @@ Game::~Game()
|
|||
|
||||
void Game::run()
|
||||
{
|
||||
m_graphics->init();
|
||||
if (!m_graphics->init()) {
|
||||
return;
|
||||
}
|
||||
|
||||
init();
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue