Skip to content

Commit 54d00d7

Browse files
authoredFeb 6, 2025
Fix panic when rendering thin textured rectangles (emilk#5692)
* Closes emilk#5664 * [x] I have followed the instructions in the PR template
1 parent 0db56dc commit 54d00d7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎crates/epaint/src/tessellator.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1810,7 +1810,7 @@ impl Tessellator {
18101810
}
18111811
}
18121812

1813-
if stroke.is_empty() {
1813+
if stroke.is_empty() && out.texture_id == TextureId::default() {
18141814
// Approximate thin rectangles with line segments.
18151815
// This is important so that thin rectangles look good.
18161816
if rect.width() <= 2.0 * self.feathering {

0 commit comments

Comments
 (0)