Destroy GLWindow on exit to prevent issues closing the app while in fullscreen
This commit is contained in:
parent
36c5058d66
commit
408e225048
3 changed files with 15 additions and 5 deletions
|
@ -1019,6 +1019,9 @@ void GMainWindow::ShutdownGame() {
|
|||
UpdateWindowTitle();
|
||||
|
||||
game_path.clear();
|
||||
|
||||
// When closing the game, destroy the GLWindow to clear the context after the game is closed
|
||||
render_window->ReleaseRenderTarget();
|
||||
}
|
||||
|
||||
void GMainWindow::StoreRecentFile(const QString& filename) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue