mirror of
https://github.com/griffi-gh/kubi.git
synced 2024-11-21 22:38:41 -06:00
Use Core
profile
This commit is contained in:
parent
fc71fda625
commit
4e6052957e
|
@ -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()
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue