GPU: Remove buggy rectangle culling.

Transformed rectangles are uncommon, but culling them properly is a bit
trickier than this, so remove for now.
This commit is contained in:
Unknown W. Brackets committed 2021-10-30 18:26:23 -07:00
1 parent b5a2afef76
commit b4bc4c5c78
1 file changed
+1 -9
+1 -9
View File
@@ -616,15 +616,7 @@ void SoftwareTransform::BuildDrawingParams(int prim, int vertexCount, u32 vertTy
if (throughmode) {
RotateUVThrough(trans);
} else {
// If both transformed verts are outside Z, cull this rectangle entirely.
constexpr float outsideValue = 1.000030517578125f;
bool tlOutside = fabsf(transVtxTL.z) >= outsideValue;
bool brOutside = fabsf(transVtxBR.z) >= outsideValue;
if (tlOutside && brOutside)
continue;
if (!gstate.isDepthClampEnabled() && (tlOutside || brOutside))
continue;
// TODO: Should apply culling here, based on projection depth range.
RotateUV(trans, params_.flippedY);
}