Skip to content

Commit

Permalink
Merge pull request #16048 from unknownbrackets/softgpu-earlyz
Browse files Browse the repository at this point in the history
softgpu: Correct line early z checks
  • Loading branch information
hrydgard authored Sep 18, 2022
2 parents f2beafe + 7d4aa3e commit a23fe93
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion GPU/Software/Rasterizer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
}
Expand Down

0 comments on commit a23fe93

Please sign in to comment.