From a09cfff78a96a10169a30324b75554827945fed4 Mon Sep 17 00:00:00 2001 From: rodri Date: Sat, 5 Oct 2024 10:07:34 +0000 Subject: patch a leak in rectclipline. fix a pixel-discarding logic statement. --- render.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'render.c') diff --git a/render.c b/render.c index 400593d..5d0954b 100644 --- a/render.c +++ b/render.c @@ -260,8 +260,8 @@ rasterize(Rastertask *task) z = flerp(prim->v[0].p.z, prim->v[1].p.z, perc); /* TODO get rid of the bounds check and make sure the clipping doesn't overflow */ - if((ropts & RODepth) && - !ptinrect(p, params->fb->r) || z <= getdepth(zr, p)) + if(!ptinrect(p, params->fb->r) || + ((ropts & RODepth) && z <= getdepth(zr, p))) goto discard; /* interpolate z⁻¹ and get actual z */ -- cgit v1.2.3