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/GLX.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/GLX.cpp')
| -rw-r--r-- | Source/Core/Common/GL/GLInterface/GLX.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Source/Core/Common/GL/GLInterface/GLX.cpp b/Source/Core/Common/GL/GLInterface/GLX.cpp index 78814db80f..70ee8485b2 100644 --- a/Source/Core/Common/GL/GLInterface/GLX.cpp +++ b/Source/Core/Common/GL/GLInterface/GLX.cpp @@ -73,9 +73,9 @@ void GLContextGLX::Swap() // Create rendering window. // Call browser: Core.cpp:EmuThread() > main.cpp:Video_Initialize() -bool GLContextGLX::Initialize(void* display_handle, void* window_handle, bool stereo, bool core) +bool GLContextGLX::Initialize(const WindowSystemInfo& wsi, bool stereo, bool core) { - m_display = static_cast<Display*>(display_handle); + m_display = static_cast<Display*>(wsi.display_connection); int screen = DefaultScreen(m_display); // checking glx version @@ -204,7 +204,7 @@ bool GLContextGLX::Initialize(void* display_handle, void* window_handle, bool st } } - if (!CreateWindowSurface(reinterpret_cast<Window>(window_handle))) + if (!CreateWindowSurface(reinterpret_cast<Window>(wsi.render_surface))) { ERROR_LOG(VIDEO, "Error: CreateWindowSurface failed\n"); XSetErrorHandler(oldHandler); |
