From 623a77bb7b55a1bb0297911032487938b156358a Mon Sep 17 00:00:00 2001 From: Georg Hopp Date: Thu, 9 Jan 2020 09:45:29 +0100 Subject: [PATCH] removed no longer needed sorting by color --- fractional/src/geometry.rs | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/fractional/src/geometry.rs b/fractional/src/geometry.rs index 00dad89..b3cdfcd 100644 --- a/fractional/src/geometry.rs +++ b/fractional/src/geometry.rs @@ -375,11 +375,6 @@ where T: Add + Sub + Neg None }}; - let mut ps :Vec<(Polygon, u32)> = self.faces.iter() - . filter_map(to_poly).collect(); - // this sorts by the color value which is no longer neccessary as soon - // as the z-buffer is complete. - ps.sort_by(|a, b| a.1.cmp(&b.1)); - ps + self.faces.iter().filter_map(to_poly).collect() } }