mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-11-26 15:53:35 +01:00
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:
1 parent
b5a2afef76
commit
b4bc4c5c78
1 file changed
+1
-9
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user