diff options
| author | Connor McLaughlin <stenzek@gmail.com> | 2019-11-08 11:05:53 +1000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-11-08 11:05:53 +1000 |
| commit | a89fdb628c349ae112d6b9749b9ba7fba1e46b04 (patch) | |
| tree | c5a9dd2a524bf5f31d046d6668933172984160fa /Source/Core/Common/GL/GLContext.cpp | |
| parent | 2ebea1bfa7e6436d0379ab25951b31e28e296763 (diff) | |
| parent | 0a75e71672ed63d6d92ba42c1a183e72090d7c83 (diff) | |
Merge pull request #8343 from stenzek/fbdev
DolphinNoGUI: Add a FBDev platform
Diffstat (limited to 'Source/Core/Common/GL/GLContext.cpp')
| -rw-r--r-- | Source/Core/Common/GL/GLContext.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Source/Core/Common/GL/GLContext.cpp b/Source/Core/Common/GL/GLContext.cpp index b02e27778f..5d740f9211 100644 --- a/Source/Core/Common/GL/GLContext.cpp +++ b/Source/Core/Common/GL/GLContext.cpp @@ -30,7 +30,7 @@ const std::array<std::pair<int, int>, 9> GLContext::s_desktop_opengl_versions = GLContext::~GLContext() = default; -bool GLContext::Initialize(void* display_handle, void* window_handle, bool stereo, bool core) +bool GLContext::Initialize(const WindowSystemInfo& wsi, bool stereo, bool core) { return false; } @@ -108,7 +108,7 @@ std::unique_ptr<GLContext> GLContext::Create(const WindowSystemInfo& wsi, bool s } #endif #if HAVE_EGL - if (wsi.type == WindowSystemType::Headless) + if (wsi.type == WindowSystemType::Headless || wsi.type == WindowSystemType::FBDev) context = std::make_unique<GLContextEGL>(); #endif @@ -119,7 +119,7 @@ std::unique_ptr<GLContext> GLContext::Create(const WindowSystemInfo& wsi, bool s if (prefer_gles) context->m_opengl_mode = Mode::OpenGLES; - if (!context->Initialize(wsi.display_connection, wsi.render_surface, stereo, core)) + if (!context->Initialize(wsi, stereo, core)) return nullptr; return context; |
