VideoBackends: Pass window system info from host on creation
This commit is contained in:
1 parent
9c57a98723
commit
eb284b5d66
26 files changed
+148
-75
No files matched your search
@@ -13,9 +13,9 @@
|
||||
|
||||
std::unique_ptr<SWOGLWindow> SWOGLWindow::s_instance;
|
||||
|
||||
void SWOGLWindow::Init(void* display_handle, void* window_handle)
|
||||
void SWOGLWindow::Init(const WindowSystemInfo& wsi)
|
||||
{
|
||||
g_main_gl_context = GLContext::Create(display_handle, window_handle);
|
||||
g_main_gl_context = GLContext::Create(wsi);
|
||||
if (!g_main_gl_context)
|
||||
{
|
||||
ERROR_LOG(VIDEO, "GLInterface::Create failed.");
|
||||
|
||||
Reference in new issue
Block a user