Skip to content

Commit

Permalink
Make Viewport::default() return a 1x1 viewport
Browse files Browse the repository at this point in the history
  • Loading branch information
SludgePhD committed Jul 17, 2024
1 parent 26fc4c7 commit 53ffc4c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/bevy_render/src/camera/camera.rs
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ impl Default for Viewport {
fn default() -> Self {
Self {
physical_position: Default::default(),
physical_size: Default::default(),
physical_size: [1, 1].into(),
depth: 0.0..1.0,
}
}
Expand Down

0 comments on commit 53ffc4c

Please sign in to comment.