From 509107fb59bfcdeec8ce5b475e49326236b22038 Mon Sep 17 00:00:00 2001 From: RSDuck Date: Sat, 8 May 2021 00:12:48 +0200 Subject: set instead of or stencil buffer for left edges --- src/GPU3D_Soft.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/GPU3D_Soft.cpp b/src/GPU3D_Soft.cpp index 2e398d5..8aebf7c 100644 --- a/src/GPU3D_Soft.cpp +++ b/src/GPU3D_Soft.cpp @@ -820,7 +820,7 @@ void SoftRenderer::RenderShadowMaskScanline(RendererPolygon* rp, s32 y) continue; if (!fnDepthTest(DepthBuffer[pixeladdr], z, dstattr)) - StencilBuffer[256*(y&0x1) + x] |= 0x1; + StencilBuffer[256*(y&0x1) + x] = 1; if (dstattr & 0x3) { -- cgit v1.2.3