1
0
mirror of https://github.com/rwengine/openrw.git synced 2024-11-22 02:12:45 +01:00

Close window in parent class (GameBase)

This commit is contained in:
Filip Gawin 2019-04-20 20:44:03 +02:00
parent 09d466269d
commit e2bdc8d81c
2 changed files with 4 additions and 4 deletions

View File

@ -1,4 +1,4 @@
#include "GameBase.hpp"
#include "GameBase.hpp"
#include <core/Logger.hpp>
#include <rw/debug.hpp>
@ -81,6 +81,8 @@ RWConfig GameBase::buildConfig(const std::optional<RWArgConfigLayer> &args) {
}
GameBase::~GameBase() {
window.close();
SDL_Quit();
log.info("Game", "Done cleaning up");

View File

@ -1,4 +1,4 @@
#include "RWGame.hpp"
#include "RWGame.hpp"
#include <glm/gtx/norm.hpp>
@ -444,8 +444,6 @@ int RWGame::run() {
stateManager.updateStack();
}
window.close();
stateManager.clear();
return 0;