Skip to content

Commit

Permalink
Update 03-other-initialization.md (#33)
Browse files Browse the repository at this point in the history
fix viewport fields
  • Loading branch information
maratik123 authored Mar 6, 2024
1 parent c68f442 commit aa52b57
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/07-windowing/03-other-initialization.md
Original file line number Diff line number Diff line change
Expand Up @@ -197,8 +197,8 @@ fn main() {
// crop

let mut viewport = Viewport {
origin: [0.0, 0.0],
dimensions: window.inner_size().into(),
offset: [0.0, 0.0],
extent: window.inner_size().into(),
depth_range: 0.0..=1.0,
};

Expand Down

0 comments on commit aa52b57

Please sign in to comment.