From 0d6d0dc0af028ead15c188db5d5f30e39fe0e3e7 Mon Sep 17 00:00:00 2001 From: Joe Wilm Date: Fri, 16 Sep 2016 17:14:16 -0700 Subject: Remove extra wait_events() Allegedly x11 wants you to wait for a refresh event before using the context, but that doesn't arrive on all platforms (notably macOS). --- src/main.rs | 6 ------ 1 file changed, 6 deletions(-) (limited to 'src') diff --git a/src/main.rs b/src/main.rs index f2ef90b2..c0685204 100644 --- a/src/main.rs +++ b/src/main.rs @@ -118,12 +118,6 @@ fn main() { println!("device_pixel_ratio: {}", dpr); - for event in window.wait_events() { - if let glutin::Event::Refresh = event { - break; - } - } - let _ = unsafe { window.make_current() }; unsafe { gl::Viewport(0, 0, width as i32, height as i32); -- cgit