summaryrefslogtreecommitdiff
path: root/render.c
diff options
context:
space:
mode:
Diffstat (limited to 'render.c')
-rw-r--r--render.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/render.c b/render.c
index 4a7fb41..f7714c7 100644
--- a/render.c
+++ b/render.c
@@ -205,7 +205,8 @@ rasterize(Rastertask *task)
p0 = Pt(prim.v[0].p.x, prim.v[0].p.y);
p1 = Pt(prim.v[1].p.x, prim.v[1].p.y);
/* clip it against our wr */
- rectclipline(task->wr, &p0, &p1);
+ if(rectclipline(task->wr, &p0, &p1) < 0)
+ break;
/* transpose the points */
if(abs(p0.x-p1.x) < abs(p0.y-p1.y)){