softgpu: Use ALWAYS for alpha/depth test in clear.

This commit is contained in:
Unknown W. Brackets 2021-11-21 17:52:51 -08:00
parent b3bd068051
commit 53c6a3933d

View file

@ -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) {