Use Core profile

This commit is contained in:
griffi-gh 2023-01-15 18:05:16 +01:00
parent fc71fda625
commit 4e6052957e

View file

@ -1,12 +1,15 @@
use glium::Display;
use glium::glutin::{
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()
}