aboutsummaryrefslogtreecommitdiff
path: root/examples/render-bsp
diff options
context:
space:
mode:
Diffstat (limited to 'examples/render-bsp')
-rw-r--r--examples/render-bsp/src/main.rs4
1 files changed, 4 insertions, 0 deletions
diff --git a/examples/render-bsp/src/main.rs b/examples/render-bsp/src/main.rs
index cab492f..aeaf4e6 100644
--- a/examples/render-bsp/src/main.rs
+++ b/examples/render-bsp/src/main.rs
@@ -138,6 +138,10 @@ fn main() {
*flow = ControlFlow::Exit
},
+ WindowEvent::Resized(_) => {
+ unsafe { renderer.context.handle_surface_change().unwrap() };
+ }
+
// Update our keystates
WindowEvent::KeyboardInput {input, ..} => match input.scancode {
// A