From d0fb653ca25f91d10b55a6b45f3a383d13509284 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vincent=20Rouill=C3=A9?= Date: Wed, 11 Mar 2026 03:50:23 +0100 Subject: [PATCH] fix: clip_rect requires padding as workaround to behave when converted to integers while still beeing affected by an offset. --- src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib.rs b/src/lib.rs index 8be3fc3..c8776e5 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -624,7 +624,7 @@ impl EguiSoftwareRender { let cropped_max = mesh_max.min(clip_rect.max.to_vec2()); let clip_rect = egui::Rect { min: Pos2::ZERO, - max: (cropped_max - cropped_min).to_pos2(), + max: (cropped_max - cropped_min).to_pos2() + egui::Vec2::splat(0.5), }; let hash = {