From d9311af14458bc732cc9dfa992428fbcbb73f490 Mon Sep 17 00:00:00 2001 From: rodri Date: Thu, 18 Apr 2024 09:30:42 +0000 Subject: render: make sure the last tile fills the screen. --- render.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/render.c b/render.c index 39d1488..b07e791 100644 --- a/render.c +++ b/render.c @@ -449,6 +449,8 @@ tilerdurden(void *arg) wr[0].max.y = wr[0].min.y + Δy; for(i = 1; i < nproc; i++) wr[i] = rectaddpt(wr[i-1], Pt(0,Δy)); + if(wr[nproc-1].max.y < params->fb->r.max.y) + wr[nproc-1].max.y = params->fb->r.max.y; verts = params->entity->mdl->obj->vertdata[OBJVGeometric].verts; tverts = params->entity->mdl->obj->vertdata[OBJVTexture].verts; -- cgit v1.2.3