1
0
mirror of https://github.com/rwengine/openrw.git synced 2024-10-06 09:07:19 +02:00

Merge pull request #707 from ShFil119/fix/win_crash

Close window in parent class (GameBase)
This commit is contained in:
Daniel Evans 2019-04-21 21:33:18 +01:00 committed by GitHub
commit f0975cac66
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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;