mirror of
https://github.com/rwengine/openrw.git
synced 2024-11-22 02:12:45 +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 <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");
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user