From d711afade1f97ac7a9ceaebf45492b4a91240a6a Mon Sep 17 00:00:00 2001 From: Ian Curtis Date: Sat, 4 Jan 2020 13:45:55 +0000 Subject: [PATCH] Only need to clip against 4 planes for poly culling --- Src/Graphics/New3D/New3D.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Src/Graphics/New3D/New3D.cpp b/Src/Graphics/New3D/New3D.cpp index ccb5342..96f267e 100644 --- a/Src/Graphics/New3D/New3D.cpp +++ b/Src/Graphics/New3D/New3D.cpp @@ -1497,7 +1497,7 @@ void CNew3D::ClipPolygon(ClipPoly& clipPoly, Plane planes[5]) in = &clipPoly; out = &temp; - for (int i = 0; i < 5; i++) { + for (int i = 0; i < 4; i++) { //================= bool currentIn;