fix shadow oddities

not a proper fix, but shadows aren't emulated properly anyway
This commit is contained in:
StapleButter 2017-04-22 19:06:48 +02:00
parent a086e22023
commit 96b471d729
1 changed files with 1 additions and 2 deletions

View File

@ -742,8 +742,7 @@ void RenderPolygon(Polygon* polygon)
if (polygon->ClearStencil) if (polygon->ClearStencil)
{ {
s32 height = ybot - ytop; memset(StencilBuffer, 0, 192*256);
memset(&StencilBuffer[ytop*256], 0, height*256);
} }
for (s32 y = ytop; y < ybot; y++) for (s32 y = ytop; y < ybot; y++)