From dcda8664ab1437f835a1be42ebc315b34945ecf8 Mon Sep 17 00:00:00 2001 From: Emil Ernerfeldt Date: Wed, 2 Sep 2026 21:23:52 +0200 Subject: [PATCH] Fix rendering of thin, angled rectangles (#8482) We had a fast path for very thin rectangles, but it did not heed the angle of the rect --- crates/epaint/src/tessellator.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/epaint/src/tessellator.rs b/crates/epaint/src/tessellator.rs index 6f3a3698b..831066883 100644 --- a/crates/epaint/src/tessellator.rs +++ b/crates/epaint/src/tessellator.rs @@ -1800,7 +1800,7 @@ impl Tessellator { } } - if stroke.is_empty() && out.texture_id == TextureId::default() { + if angle == 0.0 && 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 {