1
0
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:
Emil Ernerfeldt
2021-04-20 10:05:47 +02:00
parent 1681769329
commit 58ebb217dc
3 changed files with 12 additions and 7 deletions

View File

@@ -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
}