mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-31 21:28:51 +00:00
VideoBackends: Pass window system info from host on creation
This commit is contained in:
parent
9c57a98723
commit
eb284b5d66
26 changed files with 148 additions and 75 deletions
|
@ -157,12 +157,11 @@ bool VideoBackend::FillBackendInfo()
|
|||
return true;
|
||||
}
|
||||
|
||||
bool VideoBackend::Initialize(void* display_handle, void* window_handle)
|
||||
bool VideoBackend::Initialize(const WindowSystemInfo& wsi)
|
||||
{
|
||||
InitializeShared();
|
||||
|
||||
g_main_gl_context = GLContext::Create(display_handle, window_handle,
|
||||
g_ActiveConfig.stereo_mode == StereoMode::QuadBuffer);
|
||||
g_main_gl_context = GLContext::Create(wsi, g_ActiveConfig.stereo_mode == StereoMode::QuadBuffer);
|
||||
if (!g_main_gl_context)
|
||||
return false;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue