diff --git a/Cargo.toml b/Cargo.toml index 28351d5fa..c52c9e493 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -102,7 +102,6 @@ core-graphics = "0.17" core-text = "13.2" [features] -force-glutin = [] force-fontconfig = ["fontconfig"] [workspace] diff --git a/src/frontend/mod.rs b/src/frontend/mod.rs index b3b9fb0ad..3789c60c4 100644 --- a/src/frontend/mod.rs +++ b/src/frontend/mod.rs @@ -16,7 +16,7 @@ pub mod glium; pub mod guicommon; pub mod muxserver; pub mod software; -#[cfg(all(unix, not(feature = "force-glutin"), not(target_os = "macos")))] +#[cfg(all(unix, not(target_os = "macos")))] pub mod xwindows; #[derive(Debug, Deserialize, Clone, Copy, PartialEq, Eq)] @@ -31,9 +31,7 @@ pub enum FrontEndSelection { impl Default for FrontEndSelection { fn default() -> Self { - if cfg!(feature = "force-glutin") { - FrontEndSelection::Glutin - } else if cfg!(all(unix, not(target_os = "macos"))) { + if cfg!(all(unix, not(target_os = "macos"))) { FrontEndSelection::X11 } else { FrontEndSelection::Glutin diff --git a/src/opengl/render.rs b/src/opengl/render.rs index ab3b11adb..8e3131ee9 100644 --- a/src/opengl/render.rs +++ b/src/opengl/render.rs @@ -121,11 +121,7 @@ struct ShaderSource { impl ShaderSource { pub fn new() -> Self { - let es = cfg!(not(any( - windows, - feature = "force-glutin", - target_os = "macos" - ))); + let es = cfg!(not(any(windows, target_os = "macos"))); if es { Self { version: "300 es" }