- let mut events_loop = glutin::EventsLoop::new();
- let window = glutin::WindowBuilder::new()
- .with_dimensions(1280, 720)
- //.with_fullscreen(glutin::get_primary_monitor())
- .with_title("MandelWow");
- let context = glutin::ContextBuilder::new()
- .with_gl_profile(glutin::GlProfile::Core)
- .with_depth_buffer(24)
- .with_vsync(true)
- .with_srgb(true);
+ let mut events_loop = glium::glutin::EventsLoop::new();
+ let window = glium::glutin::WindowBuilder::new()
+ //.with_dimensions(1280, 720)
+ .with_fullscreen(Some(events_loop.get_primary_monitor()));
+ //.with_title("MandelWow");
+ let context = glium::glutin::ContextBuilder::new()
+ //.with_gl_profile(glutin::GlProfile::Core)
+ //.with_gl(glium::glutin::GlRequest::Specific(glium::glutin::Api::WebGl, (2, 0)))
+ .with_gl(glium::glutin::GlRequest::Specific(
+ glium::glutin::Api::OpenGlEs,
+ (3, 0),
+ ))
+ //.with_gl(glium::glutin::GlRequest::Specific(glium::glutin::Api::OpenGl, (4, 0)))
+ //.with_depth_buffer(24)
+ .with_vsync(true);