Remove the is_closed function

This commit is contained in:
Pierre Krieger 2015-06-16 13:48:08 +02:00
parent eb73c2514e
commit 39128dd7e1
17 changed files with 72 additions and 176 deletions

View file

@ -43,10 +43,13 @@ fn run(window: glutin::Window, color: (f32, f32, f32, f32)) {
let context = support::load(&window);
while !window.is_closed() {
for event in window.wait_events() {
context.draw_frame(color);
window.swap_buffers();
window.wait_events().next();
match event {
glutin::Event::Closed => break,
_ => ()
}
}
}