diff options
author | rodri <rgl@antares-labs.eu> | 2024-04-18 09:30:42 +0000 |
---|---|---|
committer | rodri <rgl@antares-labs.eu> | 2024-04-18 09:30:42 +0000 |
commit | d9311af14458bc732cc9dfa992428fbcbb73f490 (patch) | |
tree | d62fd9024fb8a6def876a38e696078e796f82bb9 | |
parent | b41192ebe4f5f0720cf7e4dc5ca1f6fc0131daf1 (diff) | |
download | libgraphics-d9311af14458bc732cc9dfa992428fbcbb73f490.tar.gz libgraphics-d9311af14458bc732cc9dfa992428fbcbb73f490.tar.bz2 libgraphics-d9311af14458bc732cc9dfa992428fbcbb73f490.zip |
render: make sure the last tile fills the screen.
-rw-r--r-- | render.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -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; |