aboutsummaryrefslogtreecommitdiffstats
path: root/examples/multiwindow.rs
diff options
context:
space:
mode:
Diffstat (limited to 'examples/multiwindow.rs')
-rw-r--r--examples/multiwindow.rs5
1 files changed, 2 insertions, 3 deletions
diff --git a/examples/multiwindow.rs b/examples/multiwindow.rs
index eeaa7d6..2ae9c31 100644
--- a/examples/multiwindow.rs
+++ b/examples/multiwindow.rs
@@ -23,10 +23,9 @@ fn run(window: init::Window, color: (f32, f32, f32, f32)) {
gl::ClearColor(color.val0(), color.val1(), color.val2(), color.val3());
while !window.is_closed() {
- window.wait_events().collect::<Vec<init::Event>>();
-
gl::Clear(gl::COLOR_BUFFER_BIT);
-
window.swap_buffers();
+
+ window.wait_events().collect::<Vec<init::Event>>();
}
}