Iterators returned by wait_events and poll_events are now persistent
This commit is contained in:
parent
bcda363188
commit
8fcd676714
4 changed files with 33 additions and 11 deletions
|
|
@ -47,6 +47,6 @@ fn run(window: glutin::Window, color: (f32, f32, f32, f32)) {
|
|||
context.draw_frame(color);
|
||||
window.swap_buffers();
|
||||
|
||||
window.wait_events().collect::<Vec<glutin::Event>>();
|
||||
window.wait_events().next();
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue