From 7bd5b3465995d41978acd2384d93879c0e3c21ba Mon Sep 17 00:00:00 2001 From: ata4 Date: Sat, 12 Mar 2022 23:13:35 +0100 Subject: [PATCH] Added missing z_compare call in render_spans_2cycle_complete Fixes #138, fixes #139 --- src/core/n64video/rdp/rasterizer.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/core/n64video/rdp/rasterizer.c b/src/core/n64video/rdp/rasterizer.c index 7851331..4d3fedd 100644 --- a/src/core/n64video/rdp/rasterizer.c +++ b/src/core/n64video/rdp/rasterizer.c @@ -1097,6 +1097,8 @@ static void render_spans_2cycle_complete(struct rdp_state* wstate, int start, in wstate->fbread2_ptr(wstate, curpixel, &curpixel_memcvg); + wen = z_compare(wstate, zbcur, sz, (uint16_t)dzpix, dzpixenc, &blend_en, &prewrap, &curpixel_cvg, curpixel_memcvg); + if (wen) wen = blender_2cycle_cycle0(wstate, curpixel_cvg, curpixel_cvbit);