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:
Scott Moreau 2014-01-23 19:20:22 -07:00
parent 1898524c96
commit d4ff195cad
2 changed files with 1 additions and 1 deletions

View File

@ -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;

View File

@ -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)