EGL: Properly set parent window.
In X with EGL and WX frontend enabled, running the emulator created two windows. This was because the parent window was set incorrectly.
This commit is contained in:
parent
1898524c96
commit
d4ff195cad
|
@ -173,6 +173,7 @@ bool cInterfaceEGL::Create(void *&window_handle)
|
|||
else
|
||||
eglBindAPI(EGL_OPENGL_ES_API);
|
||||
|
||||
GLWin.parent = (Window) window_handle;
|
||||
|
||||
if (!Platform.Init(config))
|
||||
return false;
|
||||
|
|
|
@ -63,7 +63,6 @@ bool cXInterface::Initialize(void *config)
|
|||
GLWin.height = _theight;
|
||||
|
||||
GLWin.evdpy = XOpenDisplay(NULL);
|
||||
GLWin.parent = GLWin.win;
|
||||
GLWin.screen = DefaultScreen(GLWin.dpy);
|
||||
|
||||
if (GLWin.parent == 0)
|
||||
|
|
Loading…
Reference in New Issue