From 92f90220a485caf71947c6bc49e134f555f10235 Mon Sep 17 00:00:00 2001 From: Tomaka17 Date: Thu, 7 Aug 2014 08:53:21 +0200 Subject: Fix events handling in examples --- examples/window.rs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'examples/window.rs') 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::>()); - gl::Clear(gl::COLOR_BUFFER_BIT); - window.swap_buffers(); + + println!("{}", window.wait_events().collect::>()); } } -- cgit v1.2.3