summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2014-10-07 07:18:47 +0100
committerChris Wilson <chris@chris-wilson.co.uk>2014-10-07 07:26:11 +0100
commitdff59000d43c5449b3ed79ff144236c17b507bd6 (patch)
treefe4e606456211e28d63edce9f2f11e2bc4a2bc5f /src
parent11c7f2d2f485e75feadb15d388960c581a96154d (diff)
sna/trapezoids: Remove stale assert
The variable changed meaning, but the assert did not. Fix that up. Reported-by: Matti Hämäläinen <ccr@tnsp.org> Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Diffstat (limited to 'src')
-rw-r--r--src/sna/sna_trapezoids_imprecise.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/sna/sna_trapezoids_imprecise.c b/src/sna/sna_trapezoids_imprecise.c
index 865a7232..414e80a2 100644
--- a/src/sna/sna_trapezoids_imprecise.c
+++ b/src/sna/sna_trapezoids_imprecise.c
@@ -473,7 +473,8 @@ polygon_add_edge(struct polygon *polygon,
struct edge *e = &polygon->edges[polygon->num_edges];
int ytop, ybot;
- assert (dy > 0);
+ assert(t->bottom > t->top);
+ assert(edge->p2.y > edge->p1.y);
e->dir = dir;