Skip to content

Commit

Permalink
Update crates/epaint/src/texture_atlas.rs
Browse files Browse the repository at this point in the history
Co-authored-by: Emil Ernerfeldt <[email protected]>
  • Loading branch information
rustbasic and emilk authored Oct 23, 2024
1 parent 445e72b commit d1c85ff
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/epaint/src/texture_atlas.rs
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ impl TextureAtlas {
}

fn max_height(&self) -> usize {
// likely the max texture height
// the initial width is set to the max size
self.image.height().max(self.image.width())
}

Expand Down

0 comments on commit d1c85ff

Please sign in to comment.