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:
parent
09d466269d
commit
e2bdc8d81c
@ -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