summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorrodri <rgl@antares-labs.eu>2024-04-18 09:30:42 +0000
committerrodri <rgl@antares-labs.eu>2024-04-18 09:30:42 +0000
commitd9311af14458bc732cc9dfa992428fbcbb73f490 (patch)
treed62fd9024fb8a6def876a38e696078e796f82bb9
parentb41192ebe4f5f0720cf7e4dc5ca1f6fc0131daf1 (diff)
downloadlibgraphics-d9311af14458bc732cc9dfa992428fbcbb73f490.tar.gz
libgraphics-d9311af14458bc732cc9dfa992428fbcbb73f490.tar.bz2
libgraphics-d9311af14458bc732cc9dfa992428fbcbb73f490.zip
render: make sure the last tile fills the screen.
-rw-r--r--render.c2
1 files changed, 2 insertions, 0 deletions
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;