Open FlashOnFire opened 1 year ago
Panic when creating a simple fullscreen window
Tested using a simple code in an empty project to isolate :
use piston_window::{PistonWindow, WindowSettings}; fn main() { let window: PistonWindow = WindowSettings::new("aaa", [1920, 1080]) .fullscreen(true) .build() .unwrap(); }
Result :
I managed to find where both of the event loops were created :
First : here at the beginning of the creation of the GlutinWindow Permalink
And here in the window_builder_from_settings function Permalink
The if check explains why it doesn't happen when using non fullscreen window
Panic when creating a simple fullscreen window
Tested using a simple code in an empty project to isolate :
Result :
I managed to find where both of the event loops were created :
First : here at the beginning of the creation of the GlutinWindow Permalink
And here in the window_builder_from_settings function Permalink
The if check explains why it doesn't happen when using non fullscreen window