EGL: Fix android build broken by last commit
This commit is contained in:
parent
d4ff195cad
commit
202054708b
|
@ -173,9 +173,7 @@ bool cInterfaceEGL::Create(void *&window_handle)
|
|||
else
|
||||
eglBindAPI(EGL_OPENGL_ES_API);
|
||||
|
||||
GLWin.parent = (Window) window_handle;
|
||||
|
||||
if (!Platform.Init(config))
|
||||
if (!Platform.Init(config, window_handle))
|
||||
return false;
|
||||
|
||||
s = eglQueryString(GLWin.egl_dpy, EGL_VERSION);
|
||||
|
|
|
@ -34,7 +34,7 @@ private:
|
|||
public:
|
||||
enum egl_platform platform;
|
||||
bool SelectDisplay(void);
|
||||
bool Init(EGLConfig config);
|
||||
bool Init(EGLConfig config, void *window_handle);
|
||||
EGLDisplay EGLGetDisplay(void);
|
||||
EGLNativeWindowType CreateWindow(void);
|
||||
void DestroyWindow(void);
|
||||
|
|
|
@ -126,7 +126,7 @@ out:
|
|||
return true;
|
||||
}
|
||||
|
||||
bool cPlatform::Init(EGLConfig config)
|
||||
bool cPlatform::Init(EGLConfig config, void *window_handle)
|
||||
{
|
||||
#if HAVE_WAYLAND
|
||||
if (cPlatform::platform == EGL_PLATFORM_WAYLAND)
|
||||
|
@ -135,7 +135,7 @@ bool cPlatform::Init(EGLConfig config)
|
|||
#endif
|
||||
#if HAVE_X11
|
||||
if (cPlatform::platform == EGL_PLATFORM_X11)
|
||||
if (!XInterface.Initialize(config))
|
||||
if (!XInterface.Initialize(config, window_handle))
|
||||
return false;
|
||||
#endif
|
||||
#ifdef ANDROID
|
||||
|
|
|
@ -30,7 +30,7 @@ bool cXInterface::ServerConnect(void)
|
|||
return true;
|
||||
}
|
||||
|
||||
bool cXInterface::Initialize(void *config)
|
||||
bool cXInterface::Initialize(void *config, void *window_handle)
|
||||
{
|
||||
int _tx, _ty, _twidth, _theight;
|
||||
XVisualInfo visTemplate;
|
||||
|
@ -63,6 +63,7 @@ bool cXInterface::Initialize(void *config)
|
|||
GLWin.height = _theight;
|
||||
|
||||
GLWin.evdpy = XOpenDisplay(NULL);
|
||||
GLWin.parent = (Window) window_handle;
|
||||
GLWin.screen = DefaultScreen(GLWin.dpy);
|
||||
|
||||
if (GLWin.parent == 0)
|
||||
|
|
|
@ -28,7 +28,7 @@ private:
|
|||
void XEventThread();
|
||||
public:
|
||||
bool ServerConnect(void);
|
||||
bool Initialize(void *config);
|
||||
bool Initialize(void *config, void *window_handle);
|
||||
void *EGLGetDisplay(void);
|
||||
void *CreateWindow(void);
|
||||
void DestroyWindow(void);
|
||||
|
|
Loading…
Reference in New Issue