From 4e6052957e398d70117baa05525eaf4db8107e3b Mon Sep 17 00:00:00 2001 From: griffi-gh Date: Sun, 15 Jan 2023 18:05:16 +0100 Subject: [PATCH] Use `Core` profile --- src/game/display.rs | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) 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() }