Fix glow window resize bug
This commit is contained in:
parent
877e89f2ec
commit
cf273e3519
1 changed files with 4 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue