add resize event to new renderer

This commit is contained in:
Carter Anderson 2020-01-20 02:02:53 -08:00
parent 79bb83732f
commit d7bd49694b

View file

@ -98,6 +98,11 @@ impl App {
render_graph render_graph
.resize(size.width, size.height, &mut self.world); .resize(size.width, size.height, &mut self.world);
} }
if let Some(ref mut renderer) = self.renderer {
renderer
.resize(&mut self.world, size.width, size.height);
}
} }
event::Event::WindowEvent { event, .. } => match event { event::Event::WindowEvent { event, .. } => match event {
WindowEvent::KeyboardInput { WindowEvent::KeyboardInput {