aboutsummaryrefslogtreecommitdiff
path: root/examples
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
commit509c1f2b38d0287ec027b8671cb4f6bc68bc9e66 (patch)
treea99dabf3f4a9574366f09f5aa3d40460984c1ad3 /examples
parent2f112ab34ac1458b038598f4d7ef6638df463dc6 (diff)
fix(render-bsp): handle resizes properly
Diffstat (limited to 'examples')
-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