1
0
mirror of https://github.com/emilk/egui.git synced 2026-06-27 07:03:14 -04:00

misc code cleanup

This commit is contained in:
Emil Ernerfeldt
2022-07-29 16:07:26 +02:00
parent b0fa0c65cc
commit 4e8a6e3370
6 changed files with 28 additions and 12 deletions

View File

@@ -1058,10 +1058,11 @@ impl Tessellator {
None => true,
Some(output_clipped_primitive) => {
output_clipped_primitive.clip_rect != new_clip_rect
|| if let Primitive::Mesh(output_mesh) = &output_clipped_primitive.primitive {
output_mesh.texture_id != new_shape.texture_id()
} else {
true
|| match &output_clipped_primitive.primitive {
Primitive::Mesh(output_mesh) => {
output_mesh.texture_id != new_shape.texture_id()
}
Primitive::Callback(_) => true,
}
}
};