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/GLContext.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'Source/Core/Common/GL/GLContext.cpp') diff --git a/Source/Core/Common/GL/GLContext.cpp b/Source/Core/Common/GL/GLContext.cpp index b02e27778f..cbc50463db 100644 --- a/Source/Core/Common/GL/GLContext.cpp +++ b/Source/Core/Common/GL/GLContext.cpp @@ -30,7 +30,7 @@ const std::array, 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; } @@ -119,7 +119,7 @@ std::unique_ptr 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; -- cgit v1.2.3 From 0a75e71672ed63d6d92ba42c1a183e72090d7c83 Mon Sep 17 00:00:00 2001 From: Stenzek Date: Wed, 10 Apr 2019 14:44:21 +0000 Subject: DolphinNoGUI: Add a FBDev platform And the associated GLContext bits --- Source/Core/Common/GL/GLContext.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Source/Core/Common/GL/GLContext.cpp') diff --git a/Source/Core/Common/GL/GLContext.cpp b/Source/Core/Common/GL/GLContext.cpp index cbc50463db..5d740f9211 100644 --- a/Source/Core/Common/GL/GLContext.cpp +++ b/Source/Core/Common/GL/GLContext.cpp @@ -108,7 +108,7 @@ std::unique_ptr 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(); #endif -- cgit v1.2.3