From 230db88fb2d9454eb13bc4e260723f57f6c4dabe Mon Sep 17 00:00:00 2001 From: Richard Date: Wed, 15 Dec 2021 02:07:13 -0300 Subject: Add setting to try OpenGL ES first --- winit/src/settings.rs | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'winit') 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 { /// 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. -- cgit