From 509c1f2b38d0287ec027b8671cb4f6bc68bc9e66 Mon Sep 17 00:00:00 2001 From: tcmal Date: Sun, 25 Aug 2024 17:44:21 +0100 Subject: fix(render-bsp): handle resizes properly --- examples/render-bsp/src/main.rs | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'examples') 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 -- cgit v1.2.3