Fix crash on windows when window is minimized
This commit is contained in:
+3
-1
@@ -73,7 +73,9 @@ impl InputWindow {
|
||||
let frame = match window.surface.get_current_texture() {
|
||||
Ok(frame) => frame,
|
||||
Err(e) => {
|
||||
eprintln!("dropped frame: {e:?}");
|
||||
if !self.window.minimized {
|
||||
eprintln!("dropped frame: {e:?}");
|
||||
}
|
||||
return;
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user