softgpu: Correct line early z checks.

Was looking at completely wrong pixels, hadn't removed subpixels yet.
This commit is contained in:
Unknown W. Brackets committed 2022-09-18 11:44:01 -07:00
1 parent f2beafe769
commit 7d4aa3eb2d
1 file changed
+1 -1
+1 -1
View File
@@ -1365,7 +1365,7 @@ void DrawLine(const VertexData &v0, const VertexData &v1, const BinCoords &range
maskOK = false;
}
if (!CheckDepthTestPassed(pixelID.DepthTestFunc(), x, y, pixelID.cached.depthbufStride, z)) {
if (!CheckDepthTestPassed(pixelID.DepthTestFunc(), p.x, p.y, pixelID.cached.depthbufStride, z)) {
maskOK = false;
}
}