remove the force-glutin feature
This commit is contained in:
1 parent
f31cf8e9b2
commit
d81465a39b
3 files changed
+3
-10
No files matched your search
@@ -102,7 +102,6 @@ core-graphics = "0.17"
|
||||
core-text = "13.2"
|
||||
|
||||
[features]
|
||||
force-glutin = []
|
||||
force-fontconfig = ["fontconfig"]
|
||||
|
||||
[workspace]
|
||||
|
||||
+2
-4
@@ -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
|
||||
|
||||
@@ -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" }
|
||||
|
||||
Reference in new issue
Block a user