diff --git a/src/rendering/polyrenderer/drawers/poly_triangle.cpp b/src/rendering/polyrenderer/drawers/poly_triangle.cpp index c9584b187..10d68396d 100644 --- a/src/rendering/polyrenderer/drawers/poly_triangle.cpp +++ b/src/rendering/polyrenderer/drawers/poly_triangle.cpp @@ -658,6 +658,7 @@ void PolySWInputAssembly::Load(PolyTriangleThreadData *thread, const void *verti bool PolyTriangleThreadData::IsDegenerate(const ShadedTriVertex *const* vert) { + return false; // A degenerate triangle has a zero cross product for two of its sides. float ax = vert[1]->gl_Position.X - vert[0]->gl_Position.X; float ay = vert[1]->gl_Position.Y - vert[0]->gl_Position.Y; @@ -669,7 +670,7 @@ bool PolyTriangleThreadData::IsDegenerate(const ShadedTriVertex *const* vert) float crossy = az * bx - ax * bz; float crossz = ax * by - ay * bx; float crosslengthsqr = crossx * crossx + crossy * crossy + crossz * crossz; - return crosslengthsqr <= 1.e-6f; + return crosslengthsqr <= 1.e-8f; } bool PolyTriangleThreadData::IsFrontfacing(TriDrawTriangleArgs *args)