mirror of
https://github.com/melonDS-emu/melonDS.git
synced 2025-07-23 06:10:03 -06:00
don't let the emuthread deinit OGL if there's no OGL
This commit is contained in:
@ -1891,9 +1891,12 @@ MainWindow::~MainWindow()
|
||||
|
||||
void MainWindow::closeEvent(QCloseEvent* event)
|
||||
{
|
||||
printf("close event\n");
|
||||
emuThread->emuPause();
|
||||
emuThread->deinitContext();
|
||||
if (hasOGL)
|
||||
{
|
||||
// we intentionally don't unpause here
|
||||
emuThread->emuPause();
|
||||
emuThread->deinitContext();
|
||||
}
|
||||
|
||||
QMainWindow::closeEvent(event);
|
||||
}
|
||||
|
Reference in New Issue
Block a user