From 83f87f3bb8a0c18c3218695b1eb14065a82e8819 Mon Sep 17 00:00:00 2001 From: Michel Dänzer Date: Fri, 20 Sep 2013 10:41:10 +0200 Subject: Reset traps_count and ptrap when necessary for the next trapezoid cliprect MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=64912 Signed-off-by: Michel Dänzer Reviewed-by: He Junyan Reviewed-by: Zhigang Gong --- src/glamor_trapezoid.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/glamor_trapezoid.c b/src/glamor_trapezoid.c index 57a178c..7c934e3 100644 --- a/src/glamor_trapezoid.c +++ b/src/glamor_trapezoid.c @@ -934,6 +934,9 @@ NTRAPS_LOOP_AGAIN: traps_not_completed -= traps_count; glamor_flush_composite_triangles(screen); goto NTRAPS_LOOP_AGAIN; + } else { + ptrap = traps; + traps_count = ntrap; } pbox++; -- cgit v1.2.3