mirror of
https://github.com/melonDS-emu/melonDS.git
synced 2025-07-29 00:59:56 -06:00
fix freeze when starting new emu instance while using OpenGL
This commit is contained in:
@ -201,7 +201,7 @@ void EmuInstance::createWindow()
|
||||
emuThread->attachWindow(win);
|
||||
|
||||
// if creating a secondary window, we may need to initialize its OpenGL context here
|
||||
if (win->hasOpenGL() && (win != topWindow))
|
||||
if (win->hasOpenGL() && (id != 0))
|
||||
emuThread->initContext(id);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user