mirror of
https://github.com/rwengine/openrw.git
synced 2024-11-22 10:22:52 +01:00
Merge pull request #707 from ShFil119/fix/win_crash
Close window in parent class (GameBase)
This commit is contained in:
commit
f0975cac66
@ -1,4 +1,4 @@
|
|||||||
#include "GameBase.hpp"
|
#include "GameBase.hpp"
|
||||||
|
|
||||||
#include <core/Logger.hpp>
|
#include <core/Logger.hpp>
|
||||||
#include <rw/debug.hpp>
|
#include <rw/debug.hpp>
|
||||||
@ -81,6 +81,8 @@ RWConfig GameBase::buildConfig(const std::optional<RWArgConfigLayer> &args) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
GameBase::~GameBase() {
|
GameBase::~GameBase() {
|
||||||
|
window.close();
|
||||||
|
|
||||||
SDL_Quit();
|
SDL_Quit();
|
||||||
|
|
||||||
log.info("Game", "Done cleaning up");
|
log.info("Game", "Done cleaning up");
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
#include "RWGame.hpp"
|
#include "RWGame.hpp"
|
||||||
|
|
||||||
#include <glm/gtx/norm.hpp>
|
#include <glm/gtx/norm.hpp>
|
||||||
|
|
||||||
@ -444,8 +444,6 @@ int RWGame::run() {
|
|||||||
stateManager.updateStack();
|
stateManager.updateStack();
|
||||||
}
|
}
|
||||||
|
|
||||||
window.close();
|
|
||||||
|
|
||||||
stateManager.clear();
|
stateManager.clear();
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
|
Loading…
Reference in New Issue
Block a user