mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-24 06:39:46 -06:00
GLContext: Use host connection
This also removes the need for a sleeping event thread.
This commit is contained in:
@ -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.");
|
||||
|
@ -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();
|
||||
|
||||
|
@ -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();
|
||||
|
Reference in New Issue
Block a user