mirror of
https://github.com/bevyengine/bevy
synced 2024-11-10 07:04:33 +00:00
add resize event to new renderer
This commit is contained in:
parent
79bb83732f
commit
d7bd49694b
1 changed files with 5 additions and 0 deletions
|
@ -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 {
|
||||||
|
|
Loading…
Reference in a new issue