Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Keep points on edges crossing w=0 under kInfiniteCoordinate.
This adds half of std::numeric_limits<float>::epsilon() (FLT_EPSILON), which is the smallest representable difference for a float at 1.0, so that the code to shift t away from the point where w=0 will move it enough so that the result is less than kInfiniteCoordinate. Bug: 1224066 Change-Id: I7df134c277f280987405d0d0c2d47de15d3ef55d Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3002270 Reviewed-by: Robert Flack <flackr@chromium.org> Commit-Queue: David Baron <dbaron@chromium.org> Cr-Commit-Position: refs/heads/master@{#898172}
- Loading branch information