Fix panic when rendering thin textured rectangles (#5692)

* Closes https://github.com/emilk/egui/issues/5664
* [x] I have followed the instructions in the PR template
This commit is contained in:
Pēteris Pakalns 2025-02-06 22:37:32 +02:00 committed by GitHub
parent 0db56dc9f1
commit 54d00d7d69
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -1810,7 +1810,7 @@ impl Tessellator {
}
}
if stroke.is_empty() {
if stroke.is_empty() && out.texture_id == TextureId::default() {
// Approximate thin rectangles with line segments.
// This is important so that thin rectangles look good.
if rect.width() <= 2.0 * self.feathering {