aboutsummaryrefslogtreecommitdiff
path: root/examples/render-bsp/src/main.rs
diff options
context:
space:
mode:
Diffstat (limited to 'examples/render-bsp/src/main.rs')
-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();
+ }
}
}