diff --git a/src/game/display.rs b/src/game/display.rs index ec81722..86d6040 100644 --- a/src/game/display.rs +++ b/src/game/display.rs @@ -1,12 +1,15 @@ use glium::Display; use glium::glutin::{ - ContextBuilder, + ContextBuilder, + GlProfile, window::WindowBuilder, event_loop::EventLoop }; pub fn init_display(event_loop: &EventLoop<()>) -> Display { let wb = WindowBuilder::new(); - let cb = ContextBuilder::new().with_depth_buffer(24); + let cb = ContextBuilder::new() + .with_depth_buffer(24) + .with_gl_profile(GlProfile::Core); Display::new(wb, cb, event_loop).unwrap() }