diff options
author | 2021-12-15 02:07:13 -0300 | |
---|---|---|
committer | 2022-01-19 17:40:17 -0300 | |
commit | 230db88fb2d9454eb13bc4e260723f57f6c4dabe (patch) | |
tree | 5c84f48fe537be6182c8f1599c15b14e5c4305f0 /winit | |
parent | 46fb27b104fda99640cca625934ababeca8fd19a (diff) | |
download | iced-230db88fb2d9454eb13bc4e260723f57f6c4dabe.tar.gz iced-230db88fb2d9454eb13bc4e260723f57f6c4dabe.tar.bz2 iced-230db88fb2d9454eb13bc4e260723f57f6c4dabe.zip |
Add setting to try OpenGL ES first
Diffstat (limited to 'winit')
-rw-r--r-- | winit/src/settings.rs | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/winit/src/settings.rs b/winit/src/settings.rs index 045cb156..9a93824a 100644 --- a/winit/src/settings.rs +++ b/winit/src/settings.rs @@ -38,6 +38,12 @@ pub struct Settings<Flags> { /// Whether the [`Application`] should exit when the user requests the /// window to close (e.g. the user presses the close button). pub exit_on_close_request: bool, + + /// Whether the [`Application`] should try to build the context + /// using OpenGL ES first then OpenGL. + /// + /// NOTE: Only works for the `glow` backend. + pub try_opengles_first: bool, } /// The window settings of an application. |