[cairo-commit] src/cairo-polygon-intersect.c

Chris Wilson ickle at kemper.freedesktop.org
Thu Feb 9 14:46:53 PST 2012


 src/cairo-polygon-intersect.c |    1 -
 1 file changed, 1 deletion(-)

New commits:
commit 2886df60b040c6c8e7255a4385da5fb85531cbf3
Author: Chris Wilson <chris at chris-wilson.co.uk>
Date:   Thu Feb 9 22:44:47 2012 +0000

    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 <chris at chris-wilson.co.uk>

diff --git a/src/cairo-polygon-intersect.c b/src/cairo-polygon-intersect.c
index 0e5b0b9..71d56d7 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)


More information about the cairo-commit mailing list