Hand EGL native display into renderer to not use default display

This commit is contained in:
Simon Fels 2016-08-08 07:09:11 +02:00
commit 5ee8c02b8d
11 changed files with 25 additions and 10 deletions

View file

@ -78,6 +78,7 @@ RENDER_APICALL int RENDER_APIENTRY initLibrary(void)
}
RENDER_APICALL int RENDER_APIENTRY initOpenGLRenderer(
EGLNativeDisplayType native_display,
int width, int height, bool useSubWindow, char* addr, size_t addrLen,
emugl_logger_struct logfuncs, emugl_crash_func_t crashfunc) {
set_emugl_crash_reporter(crashfunc);
@ -116,7 +117,7 @@ RENDER_APICALL int RENDER_APIENTRY initOpenGLRenderer(
// initialize the renderer and listen to connections
// on a thread in the current process.
//
s_renderWindow = new RenderWindow(width, height, kUseThread, useSubWindow);
s_renderWindow = new RenderWindow(native_display, width, height, kUseThread, useSubWindow);
if (!s_renderWindow) {
ERR("Could not create rendering window class");
GL_LOG("Could not create rendering window class");