Skip to content

Commit

Permalink
Update texture_atlas.rs
Browse files Browse the repository at this point in the history
  • Loading branch information
rustbasic authored Oct 12, 2024
1 parent d9a540b commit 445e72b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions crates/epaint/src/texture_atlas.rs
Original file line number Diff line number Diff line change
Expand Up @@ -159,8 +159,8 @@ impl TextureAtlas {
}

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

/// When this get high, it might be time to clear and start over!
Expand Down

0 comments on commit 445e72b

Please sign in to comment.