summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorLibravatar Héctor Ramón Jiménez <hector0193@gmail.com>2023-02-10 20:24:18 +0100
committerLibravatar Héctor Ramón Jiménez <hector0193@gmail.com>2023-02-24 13:38:18 +0100
commita0597471b81b122b43e1bb90e43e1bcde1e8a892 (patch)
tree76b5a343cc2a8817992f078266455da51e0ff16e /src
parent26e902f7d84290f8163a25c37488d29db4fc0708 (diff)
downloadiced-a0597471b81b122b43e1bb90e43e1bcde1e8a892.tar.gz
iced-a0597471b81b122b43e1bb90e43e1bcde1e8a892.tar.bz2
iced-a0597471b81b122b43e1bb90e43e1bcde1e8a892.zip
Remove `iced_glutin` and `iced_glow` leftovers
Diffstat (limited to 'src')
-rw-r--r--src/lib.rs11
-rw-r--r--src/settings.rs12
2 files changed, 1 insertions, 22 deletions
diff --git a/src/lib.rs b/src/lib.rs
index 17c5ab97..31ec4f48 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -182,17 +182,8 @@ pub mod touch;
pub mod widget;
pub mod window;
-#[cfg(all(not(feature = "glow"), feature = "wgpu"))]
-use iced_winit as runtime;
-
-#[cfg(feature = "glow")]
-use iced_glutin as runtime;
-
-#[cfg(all(not(feature = "glow"), feature = "wgpu"))]
use iced_wgpu as renderer;
-
-#[cfg(feature = "glow")]
-use iced_glow as renderer;
+use iced_winit as runtime;
pub use iced_native::theme;
pub use runtime::event;
diff --git a/src/settings.rs b/src/settings.rs
index ce07b0dd..13b3af7c 100644
--- a/src/settings.rs
+++ b/src/settings.rs
@@ -49,15 +49,6 @@ pub struct Settings<Flags> {
///
/// [`Application`]: crate::Application
pub exit_on_close_request: bool,
-
- /// Whether the [`Application`] should try to build the context
- /// using OpenGL ES first then OpenGL.
- ///
- /// By default, it is disabled.
- /// **Note:** Only works for the `glow` backend.
- ///
- /// [`Application`]: crate::Application
- pub try_opengles_first: bool,
}
impl<Flags> Settings<Flags> {
@@ -75,7 +66,6 @@ impl<Flags> Settings<Flags> {
default_text_size: default_settings.default_text_size,
antialiasing: default_settings.antialiasing,
exit_on_close_request: default_settings.exit_on_close_request,
- try_opengles_first: default_settings.try_opengles_first,
}
}
}
@@ -93,7 +83,6 @@ where
default_text_size: 16.0,
antialiasing: false,
exit_on_close_request: true,
- try_opengles_first: false,
}
}
}
@@ -105,7 +94,6 @@ impl<Flags> From<Settings<Flags>> for iced_winit::Settings<Flags> {
window: settings.window.into(),
flags: settings.flags,
exit_on_close_request: settings.exit_on_close_request,
- try_opengles_first: settings.try_opengles_first,
}
}
}