mirror of
https://github.com/melonDS-emu/melonDS.git
synced 2025-07-27 00:00:07 -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)
|
void MainWindow::closeEvent(QCloseEvent* event)
|
||||||
{
|
{
|
||||||
printf("close event\n");
|
if (hasOGL)
|
||||||
emuThread->emuPause();
|
{
|
||||||
emuThread->deinitContext();
|
// we intentionally don't unpause here
|
||||||
|
emuThread->emuPause();
|
||||||
|
emuThread->deinitContext();
|
||||||
|
}
|
||||||
|
|
||||||
QMainWindow::closeEvent(event);
|
QMainWindow::closeEvent(event);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user