1
0
mirror of https://github.com/emilk/egui.git synced 2026-09-02 23:00:04 -04:00

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
This commit is contained in:
Emil Ernerfeldt
2026-09-02 21:23:52 +02:00
committed by GitHub
parent 7c38c552e4
commit dcda8664ab

View File

@@ -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. // Approximate thin rectangles with line segments.
// This is important so that thin rectangles look good. // This is important so that thin rectangles look good.
if rect.width() <= 2.0 * self.feathering { if rect.width() <= 2.0 * self.feathering {