Extrude properly sorts returned intersections

git-svn-id: svn://anubis/fart/trunk@275 7f9b0f55-74a9-4bce-be96-3c2cd072584d
This commit is contained in:
Josh Holtrop 2010-07-08 15:36:22 +00:00
parent 9bed134733
commit cb4c84ee66

View File

@ -90,9 +90,7 @@ Shape::IntersectionList Extrude::intersect(refptr<Shape> _this, const Ray & ray)
} }
} }
vector<Intersection> m; sort(res.begin(), res.end(), IntersectListComparator(ray.getOrigin()));
sort(m.begin(), m.end(), IntersectListComparator(ray.getOrigin()));
return res; return res;
} }