From 2886df60b040c6c8e7255a4385da5fb85531cbf3 Mon Sep 17 00:00:00 2001 From: Chris Wilson Date: Thu, 9 Feb 2012 22:44:47 +0000 Subject: [PATCH] polygon-intersection: The edge direction is immaterial When checking for continuations on the right-hand edge, the actual direction of the edge is immaterial as it is sorted into ascending y-order and the direction is fixed up when emitting into the output polygon. Fixes assertion introduced with 658fa75a5c78c8. Signed-off-by: Chris Wilson --- src/cairo-polygon-intersect.c | 1 - 1 file changed, 1 deletion(-) diff --git a/src/cairo-polygon-intersect.c b/src/cairo-polygon-intersect.c index 0e5b0b972..71d56d7af 100644 --- a/src/cairo-polygon-intersect.c +++ b/src/cairo-polygon-intersect.c @@ -1183,7 +1183,6 @@ edges_start_or_continue (cairo_bo_edge_t *left, /* continuation on right, extend right to cover both */ assert (old->deferred.other == NULL); - assert (old->edge.dir == right->edge.dir); assert (old->edge.line.p2.y > old->edge.line.p1.y); if (old->edge.line.p1.y < right->edge.line.p1.y)