aboutsummaryrefslogtreecommitdiff
path: root/src/GPU3D_Soft.cpp
diff options
context:
space:
mode:
authorStapleButter <thetotalworm@gmail.com>2017-04-22 19:06:48 +0200
committerStapleButter <thetotalworm@gmail.com>2017-04-22 19:06:48 +0200
commit96b471d729a0b2007818e1e32eb71f6bb04f799f (patch)
tree77c3e70f10fa5648abd6f20c258305f3a4d550e6 /src/GPU3D_Soft.cpp
parenta086e220233ba2754913868372d6c0a421141467 (diff)
fix shadow oddities
not a proper fix, but shadows aren't emulated properly anyway
Diffstat (limited to 'src/GPU3D_Soft.cpp')
-rw-r--r--src/GPU3D_Soft.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/GPU3D_Soft.cpp b/src/GPU3D_Soft.cpp
index 2ca3100..965428a 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++)