diff options
| author | Stenzek <stenzek@gmail.com> | 2019-04-10 14:40:19 +0000 |
|---|---|---|
| committer | Stenzek <stenzek@gmail.com> | 2019-09-01 13:35:11 +1000 |
| commit | 43fe02ee9b820d16d1759a1e37b666bcb1e5a298 (patch) | |
| tree | 77b2fd01e689a874d8d6b7d33eefcd586abb3d78 /Source/Core/Common/GL/GLInterface/WGL.cpp | |
| parent | 5ea4f998c09283c67e30925c066780e431ca9ef9 (diff) | |
GLContext: Get size using eglQuerySurface()
Also no longer assumes that a nullptr display is not headless (needed for fbdev)
Diffstat (limited to 'Source/Core/Common/GL/GLInterface/WGL.cpp')
| -rw-r--r-- | Source/Core/Common/GL/GLInterface/WGL.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Source/Core/Common/GL/GLInterface/WGL.cpp b/Source/Core/Common/GL/GLInterface/WGL.cpp index e168f94e51..034d05a415 100644 --- a/Source/Core/Common/GL/GLInterface/WGL.cpp +++ b/Source/Core/Common/GL/GLInterface/WGL.cpp @@ -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; |
