Fix glow window resize bug

This commit is contained in:
Emil Ernerfeldt 2021-10-18 23:39:33 +02:00
parent 877e89f2ec
commit cf273e3519

View file

@ -359,6 +359,10 @@ pub fn run(mut app: Box<dyn epi::App>, native_options: &epi::NativeOptions) -> !
is_focused = new_focused;
}
if let glutin::event::WindowEvent::Resized(physical_size) = event {
gl_window.resize(physical_size);
}
egui.on_event(&event);
gl_window.window().request_redraw(); // TODO: ask egui if the events warrants a repaint instead