From 5ad62fff05064a6a025a9b947ebab05ed7770e6c Mon Sep 17 00:00:00 2001 From: tcmal Date: Sun, 25 Aug 2024 17:44:21 +0100 Subject: feat(render): handle window resize and close events again --- stockton-render/src/lib.rs | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'stockton-render/src/lib.rs') diff --git a/stockton-render/src/lib.rs b/stockton-render/src/lib.rs index 7cea5e7..4d10ff8 100644 --- a/stockton-render/src/lib.rs +++ b/stockton-render/src/lib.rs @@ -87,6 +87,10 @@ impl<'a> Renderer<'a> { self.context.draw_vertices(map, &faces).unwrap(); } } + + fn resize(&mut self) { + unsafe { self.context.handle_surface_change().unwrap() }; + } } /// A system that just renders the world. -- cgit v1.2.3