Fix crash on windows when window is minimized

This commit is contained in:
2024-11-10 15:03:07 -05:00
parent 5cb36d0bcc
commit 6dc3697baf
3 changed files with 30 additions and 6 deletions
+3 -1
View File
@@ -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;
}
};