mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2026-09-08 11:26:23 -05:00
Remove GLX support
EGL is the de-facto GL context initialization API, including on X11 where it provides many additional features over GLX. I’m planning on adding support for selecting the GPU (adapter in Dolphin-speak) also to OpenGL, similarly to the Vulkan backend, and that will require EGL, so let’s remove the legacy API first.
This commit is contained in:
@@ -76,7 +76,7 @@ std::string VideoBackend::GetDisplayName() const
|
||||
void VideoBackend::InitBackendInfo(const WindowSystemInfo& wsi)
|
||||
{
|
||||
std::unique_ptr<GLContext> temp_gl_context =
|
||||
GLContext::Create(wsi, g_Config.stereo_mode == StereoMode::QuadBuffer, true, false,
|
||||
GLContext::Create(wsi, g_Config.stereo_mode == StereoMode::QuadBuffer, true,
|
||||
Config::Get(Config::GFX_PREFER_GLES));
|
||||
|
||||
if (!temp_gl_context)
|
||||
@@ -195,7 +195,7 @@ bool VideoBackend::FillBackendInfo(GLContext* context)
|
||||
bool VideoBackend::Initialize(const WindowSystemInfo& wsi)
|
||||
{
|
||||
std::unique_ptr<GLContext> main_gl_context =
|
||||
GLContext::Create(wsi, g_Config.stereo_mode == StereoMode::QuadBuffer, true, false,
|
||||
GLContext::Create(wsi, g_Config.stereo_mode == StereoMode::QuadBuffer, true,
|
||||
Config::Get(Config::GFX_PREFER_GLES));
|
||||
if (!main_gl_context)
|
||||
return false;
|
||||
|
||||
Reference in New Issue
Block a user