From 96b471d729a0b2007818e1e32eb71f6bb04f799f Mon Sep 17 00:00:00 2001 From: StapleButter Date: Sat, 22 Apr 2017 19:06:48 +0200 Subject: [PATCH] fix shadow oddities not a proper fix, but shadows aren't emulated properly anyway --- src/GPU3D_Soft.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/GPU3D_Soft.cpp b/src/GPU3D_Soft.cpp index 2ca3100c..965428a2 100644 --- a/src/GPU3D_Soft.cpp +++ b/src/GPU3D_Soft.cpp @@ -742,8 +742,7 @@ void RenderPolygon(Polygon* polygon) if (polygon->ClearStencil) { - s32 height = ybot - ytop; - memset(&StencilBuffer[ytop*256], 0, height*256); + memset(StencilBuffer, 0, 192*256); } for (s32 y = ytop; y < ybot; y++)