aboutsummaryrefslogtreecommitdiff
path: root/examples/render-bsp/src
diff options
context:
space:
mode:
authortcmal <me@aria.rip>2024-08-25 17:44:21 +0100
committertcmal <me@aria.rip>2024-08-25 17:44:21 +0100
commit5ad62fff05064a6a025a9b947ebab05ed7770e6c (patch)
treefe7a61a8c4910f99df878682edfaf2963a9aca59 /examples/render-bsp/src
parent412d09b7ce9afcb812b748a08621ad9ca70a7966 (diff)
feat(render): handle window resize and close events again
Diffstat (limited to 'examples/render-bsp/src')
-rw-r--r--examples/render-bsp/src/main.rs4
1 files changed, 3 insertions, 1 deletions
diff --git a/examples/render-bsp/src/main.rs b/examples/render-bsp/src/main.rs
index 4c7ef03..b18d7f2 100644
--- a/examples/render-bsp/src/main.rs
+++ b/examples/render-bsp/src/main.rs
@@ -76,7 +76,9 @@ fn main() {
}
Event::RedrawRequested(_) => session.do_update(),
_ => {
- tx.send(WindowEvent::from(&event)).unwrap();
+ if let Some(we) = WindowEvent::from(&event) {
+ tx.send(we).unwrap();
+ }
}
}