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:
Link Mauve
2026-04-20 16:06:14 +02:00
parent 914f5c5621
commit fc47091592
6 changed files with 6 additions and 396 deletions

View File

@@ -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;