diff options
author | tcmal <me@aria.rip> | 2024-08-25 17:44:21 +0100 |
---|---|---|
committer | tcmal <me@aria.rip> | 2024-08-25 17:44:21 +0100 |
commit | 509c1f2b38d0287ec027b8671cb4f6bc68bc9e66 (patch) | |
tree | a99dabf3f4a9574366f09f5aa3d40460984c1ad3 /examples/render-bsp | |
parent | 2f112ab34ac1458b038598f4d7ef6638df463dc6 (diff) |
fix(render-bsp): handle resizes properly
Diffstat (limited to 'examples/render-bsp')
-rw-r--r-- | examples/render-bsp/src/main.rs | 4 |
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 |