aboutsummaryrefslogtreecommitdiffstats
path: root/examples/window.rs
diff options
context:
space:
mode:
Diffstat (limited to 'examples/window.rs')
-rw-r--r--examples/window.rs5
1 files changed, 2 insertions, 3 deletions
diff --git a/examples/window.rs b/examples/window.rs
index c366ee0..07f5a84 100644
--- a/examples/window.rs
+++ b/examples/window.rs
@@ -19,10 +19,9 @@ fn main() {
gl::ClearColor(0.0, 1.0, 0.0, 1.0);
while !window.is_closed() {
- println!("{}", window.wait_events().collect::<Vec<init::Event>>());
-
gl::Clear(gl::COLOR_BUFFER_BIT);
-
window.swap_buffers();
+
+ println!("{}", window.wait_events().collect::<Vec<init::Event>>());
}
}