Commit 623a77bb7b55a1bb0297911032487938b156358a

Authored by Georg Hopp
1 parent 7900e2ff

removed no longer needed sorting by color

Showing 1 changed file with 1 additions and 6 deletions
@@ -375,11 +375,6 @@ where T: Add<Output = T> + Sub<Output = T> + Neg<Output = T> @@ -375,11 +375,6 @@ where T: Add<Output = T> + Sub<Output = T> + Neg<Output = T>
375 None 375 None
376 }}; 376 }};
377 377
378 - let mut ps :Vec<(Polygon<T>, u32)> = self.faces.iter()  
379 - . filter_map(to_poly).collect();  
380 - // this sorts by the color value which is no longer neccessary as soon  
381 - // as the z-buffer is complete.  
382 - ps.sort_by(|a, b| a.1.cmp(&b.1));  
383 - ps 378 + self.faces.iter().filter_map(to_poly).collect()
384 } 379 }
385 } 380 }
Please register or login to post a comment