diff options
-rw-r--r-- | src/GPU3D_Soft.cpp | 3 |
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++) |