summaryrefslogtreecommitdiff
path: root/Source/Core/Common/GL/GLInterface/GLX.cpp
diff options
context:
space:
mode:
authorConnor McLaughlin <stenzek@gmail.com>2019-11-08 11:05:53 +1000
committerGitHub <noreply@github.com>2019-11-08 11:05:53 +1000
commita89fdb628c349ae112d6b9749b9ba7fba1e46b04 (patch)
treec5a9dd2a524bf5f31d046d6668933172984160fa /Source/Core/Common/GL/GLInterface/GLX.cpp
parent2ebea1bfa7e6436d0379ab25951b31e28e296763 (diff)
parent0a75e71672ed63d6d92ba42c1a183e72090d7c83 (diff)
Merge pull request #8343 from stenzek/fbdev
DolphinNoGUI: Add a FBDev platform
Diffstat (limited to 'Source/Core/Common/GL/GLInterface/GLX.cpp')
-rw-r--r--Source/Core/Common/GL/GLInterface/GLX.cpp6
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);