1
0
Fork 0
mirror of https://github.com/alacritty/alacritty.git synced 2024-11-18 13:55:23 -05:00

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).
This commit is contained in:
Joe Wilm 2016-09-16 17:14:16 -07:00
parent 7da9de34d8
commit 0d6d0dc0af

View file

@ -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);