mirror of
https://github.com/emilk/egui.git
synced 2026-06-27 15:13:12 -04:00
Tesselator: ignore zero-sized clip rects
Improves https://github.com/emilk/egui/issues/328
This commit is contained in:
@@ -742,7 +742,7 @@ pub fn tessellate_shapes(
|
||||
let mut clipped_meshes: Vec<ClippedMesh> = Vec::default();
|
||||
|
||||
for ClippedShape(clip_rect, shape) in shapes {
|
||||
if !clip_rect.is_non_negative() {
|
||||
if !clip_rect.is_positive() {
|
||||
continue; // skip empty clip rectangles
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user