From 53c6a3933d6f83f535024805700647d390695fcc Mon Sep 17 00:00:00 2001 From: "Unknown W. Brackets" Date: Sun, 21 Nov 2021 17:52:51 -0800 Subject: [PATCH] softgpu: Use ALWAYS for alpha/depth test in clear. --- GPU/Software/FuncId.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/GPU/Software/FuncId.cpp b/GPU/Software/FuncId.cpp index d40a79695e..b0913c8daf 100644 --- a/GPU/Software/FuncId.cpp +++ b/GPU/Software/FuncId.cpp @@ -38,6 +38,8 @@ void ComputePixelFuncID(PixelFuncID *id) { id->colorTest = gstate.isClearModeColorMask(); id->stencilTest = gstate.isClearModeAlphaMask(); id->depthWrite = gstate.isClearModeDepthMask(); + id->depthTestFunc = GE_COMP_ALWAYS; + id->alphaTestFunc = GE_COMP_ALWAYS; } else { id->colorTest = gstate.isColorTestEnabled() && gstate.getColorTestFunction() != GE_COMP_ALWAYS; if (gstate.isStencilTestEnabled() && gstate.getStencilTestFunction() == GE_COMP_ALWAYS) {