mirror of
https://github.com/griffi-gh/kubi.git
synced 2024-11-22 06:48:43 -06:00
Use Core
profile
This commit is contained in:
parent
fc71fda625
commit
4e6052957e
|
@ -1,12 +1,15 @@
|
||||||
use glium::Display;
|
use glium::Display;
|
||||||
use glium::glutin::{
|
use glium::glutin::{
|
||||||
ContextBuilder,
|
ContextBuilder,
|
||||||
|
GlProfile,
|
||||||
window::WindowBuilder,
|
window::WindowBuilder,
|
||||||
event_loop::EventLoop
|
event_loop::EventLoop
|
||||||
};
|
};
|
||||||
|
|
||||||
pub fn init_display(event_loop: &EventLoop<()>) -> Display {
|
pub fn init_display(event_loop: &EventLoop<()>) -> Display {
|
||||||
let wb = WindowBuilder::new();
|
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()
|
Display::new(wb, cb, event_loop).unwrap()
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue