PistonDevelopers/piston_window

Unable to create fullscreen window

FlashOnFire opened this issue · 1 comments

Panic when creating a simple fullscreen window with default backend

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 :
image

I managed to find where both of the event loops were created :

First : here at the beginning of the creation of the GlutinWindow
image

And here in the window_builder_from_settings function
image

The if check explains why it doesn't happen when using non fullscreen window

Closed and reposted on the glutin window repo