From 43fe02ee9b820d16d1759a1e37b666bcb1e5a298 Mon Sep 17 00:00:00 2001 From: Stenzek Date: Wed, 10 Apr 2019 14:40:19 +0000 Subject: GLContext: Get size using eglQuerySurface() Also no longer assumes that a nullptr display is not headless (needed for fbdev) --- Source/Core/Common/GL/GLInterface/WGL.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'Source/Core/Common/GL/GLInterface/WGL.cpp') 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(window_handle); + m_window_handle = reinterpret_cast(wsi.render_surface); if (!GetClientRect(m_window_handle, &window_rect)) return false; -- cgit v1.2.3