mirror of
https://github.com/melonDS-emu/melonDS.git
synced 2025-07-25 23:29:55 -06:00
fix freeze when starting new emu instance while using OpenGL
This commit is contained in:
@ -749,8 +749,10 @@ bool ScreenPanelGL::createContext()
|
||||
|
||||
// if our parent window is parented to another window, we will
|
||||
// share our OpenGL context with that window
|
||||
MainWindow* ourwin = (MainWindow*)parentWidget();
|
||||
MainWindow* parentwin = (MainWindow*)parentWidget()->parentWidget();
|
||||
if (parentwin)
|
||||
//if (parentwin)
|
||||
if (ourwin->getWindowID() != 0)
|
||||
{
|
||||
if (windowinfo.has_value())
|
||||
if (glContext = parentwin->getOGLContext()->CreateSharedContext(*windowinfo))
|
||||
|
Reference in New Issue
Block a user