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:
parent
7da9de34d8
commit
0d6d0dc0af
1 changed files with 0 additions and 6 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue