mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-25 07:09:48 -06:00
GLContext: Get size using eglQuerySurface()
Also no longer assumes that a nullptr display is not headless (needed for fbdev)
This commit is contained in:
@ -223,13 +223,13 @@ void* GLContextWGL::GetFuncAddress(const std::string& name)
|
||||
|
||||
// Create rendering window.
|
||||
// Call browser: Core.cpp:EmuThread() > main.cpp:Video_Initialize()
|
||||
bool GLContextWGL::Initialize(void* display_handle, void* window_handle, bool stereo, bool core)
|
||||
bool GLContextWGL::Initialize(const WindowSystemInfo& wsi, bool stereo, bool core)
|
||||
{
|
||||
if (!window_handle)
|
||||
if (!wsi.render_surface)
|
||||
return false;
|
||||
|
||||
RECT window_rect = {};
|
||||
m_window_handle = reinterpret_cast<HWND>(window_handle);
|
||||
m_window_handle = reinterpret_cast<HWND>(wsi.render_surface);
|
||||
if (!GetClientRect(m_window_handle, &window_rect))
|
||||
return false;
|
||||
|
||||
|
Reference in New Issue
Block a user