mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-21 21:30:19 -06:00
VideoBackends: Pass window system info from host on creation
This commit is contained in:
@ -82,8 +82,7 @@ void* GLContext::GetFuncAddress(const std::string& name)
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
std::unique_ptr<GLContext> GLContext::Create(void* display_handle, void* window_handle, bool stereo,
|
||||
bool core)
|
||||
std::unique_ptr<GLContext> GLContext::Create(const WindowSystemInfo& wsi, bool stereo, bool core)
|
||||
{
|
||||
std::unique_ptr<GLContext> context;
|
||||
#if defined(__APPLE__)
|
||||
@ -103,7 +102,7 @@ std::unique_ptr<GLContext> GLContext::Create(void* display_handle, void* window_
|
||||
#else
|
||||
return nullptr;
|
||||
#endif
|
||||
if (!context->Initialize(display_handle, window_handle, stereo, core))
|
||||
if (!context->Initialize(wsi.display_connection, wsi.render_surface, stereo, core))
|
||||
return nullptr;
|
||||
|
||||
return context;
|
||||
|
Reference in New Issue
Block a user