summaryrefslogtreecommitdiff
path: root/Source/Core/Common/GL/GLInterface/EGL.cpp
diff options
context:
space:
mode:
authorStenzek <stenzek@gmail.com>2018-10-03 23:03:19 +1000
committerStenzek <stenzek@gmail.com>2018-10-20 21:11:34 +1000
commit9c57a98723997736adea94383668fbdf8a993fd8 (patch)
tree5800ef34172a1edea20ba4571ea5bc95b1eb29e0 /Source/Core/Common/GL/GLInterface/EGL.cpp
parent1d827a52234974f308e71e86cdd6f61293e0523f (diff)
GLContext: Use host connection
This also removes the need for a sleeping event thread.
Diffstat (limited to 'Source/Core/Common/GL/GLInterface/EGL.cpp')
-rw-r--r--Source/Core/Common/GL/GLInterface/EGL.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/Source/Core/Common/GL/GLInterface/EGL.cpp b/Source/Core/Common/GL/GLInterface/EGL.cpp
index 46073fe074..eebe5e2e0e 100644
--- a/Source/Core/Common/GL/GLInterface/EGL.cpp
+++ b/Source/Core/Common/GL/GLInterface/EGL.cpp
@@ -152,15 +152,16 @@ EGLNativeWindowType GLContextEGL::GetEGLNativeWindow(EGLConfig config)
// Create rendering window.
// Call browser: Core.cpp:EmuThread() > main.cpp:Video_Initialize()
-bool GLContextEGL::Initialize(void* window_handle, bool stereo, bool core)
+bool GLContextEGL::Initialize(void* display_handle, void* window_handle, bool stereo, bool core)
{
const bool has_handle = !!window_handle;
EGLint egl_major, egl_minor;
bool supports_core_profile = false;
- m_egl_display = OpenEGLDisplay();
+ m_host_display = display_handle;
m_host_window = window_handle;
+ m_egl_display = OpenEGLDisplay();
m_is_core_context = core;
if (!m_egl_display)
@@ -299,6 +300,7 @@ bool GLContextEGL::Initialize(GLContext* main_context)
GLContextEGL* egl_context = static_cast<GLContextEGL*>(main_context);
m_opengl_mode = egl_context->m_opengl_mode;
+ m_host_display = egl_context->m_host_display;
m_egl_display = egl_context->m_egl_display;
m_is_core_context = egl_context->m_is_core_context;
m_config = egl_context->m_config;