diff options
| author | Stenzek <stenzek@gmail.com> | 2018-10-03 23:03:19 +1000 |
|---|---|---|
| committer | Stenzek <stenzek@gmail.com> | 2018-10-20 21:11:34 +1000 |
| commit | 9c57a98723997736adea94383668fbdf8a993fd8 (patch) | |
| tree | 5800ef34172a1edea20ba4571ea5bc95b1eb29e0 /Source/Core/VideoBackends/Software | |
| parent | 1d827a52234974f308e71e86cdd6f61293e0523f (diff) | |
GLContext: Use host connection
This also removes the need for a sleeping event thread.
Diffstat (limited to 'Source/Core/VideoBackends/Software')
| -rw-r--r-- | Source/Core/VideoBackends/Software/SWOGLWindow.cpp | 4 | ||||
| -rw-r--r-- | Source/Core/VideoBackends/Software/SWOGLWindow.h | 2 | ||||
| -rw-r--r-- | Source/Core/VideoBackends/Software/SWmain.cpp | 2 |
3 files changed, 4 insertions, 4 deletions
diff --git a/Source/Core/VideoBackends/Software/SWOGLWindow.cpp b/Source/Core/VideoBackends/Software/SWOGLWindow.cpp index dd390bc6dc..fb6731b4b7 100644 --- a/Source/Core/VideoBackends/Software/SWOGLWindow.cpp +++ b/Source/Core/VideoBackends/Software/SWOGLWindow.cpp @@ -13,9 +13,9 @@ std::unique_ptr<SWOGLWindow> SWOGLWindow::s_instance; -void SWOGLWindow::Init(void* window_handle) +void SWOGLWindow::Init(void* display_handle, void* window_handle) { - g_main_gl_context = GLContext::Create(window_handle); + g_main_gl_context = GLContext::Create(display_handle, window_handle); if (!g_main_gl_context) { ERROR_LOG(VIDEO, "GLInterface::Create failed."); diff --git a/Source/Core/VideoBackends/Software/SWOGLWindow.h b/Source/Core/VideoBackends/Software/SWOGLWindow.h index eadf3171cb..a393194ed7 100644 --- a/Source/Core/VideoBackends/Software/SWOGLWindow.h +++ b/Source/Core/VideoBackends/Software/SWOGLWindow.h @@ -16,7 +16,7 @@ class AbstractTexture; class SWOGLWindow { public: - static void Init(void* window_handle); + static void Init(void* display_handle, void* window_handle); static void Shutdown(); void Prepare(); diff --git a/Source/Core/VideoBackends/Software/SWmain.cpp b/Source/Core/VideoBackends/Software/SWmain.cpp index f4c0aaa641..2aa099e9e9 100644 --- a/Source/Core/VideoBackends/Software/SWmain.cpp +++ b/Source/Core/VideoBackends/Software/SWmain.cpp @@ -82,7 +82,7 @@ bool VideoSoftware::Initialize(void* display_handle, void* window_handle) { InitializeShared(); - SWOGLWindow::Init(window_handle); + SWOGLWindow::Init(display_handle, window_handle); Clipper::Init(); Rasterizer::Init(); |
