From fdc2e2e78f79166e14a529e977f89e228b1af6fd Mon Sep 17 00:00:00 2001 From: Georg Lehmann Date: Sat, 7 Aug 2021 19:19:52 +0200 Subject: [PATCH] [d3d9] Fix NEVER alpha testing --- src/d3d9/d3d9_fixed_function.cpp | 2 +- src/dxso/dxso_compiler.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/d3d9/d3d9_fixed_function.cpp b/src/d3d9/d3d9_fixed_function.cpp index 93a6157d..e04f3793 100644 --- a/src/d3d9/d3d9_fixed_function.cpp +++ b/src/d3d9/d3d9_fixed_function.cpp @@ -2211,7 +2211,7 @@ namespace dxvk { // Declare spec constants for render states uint32_t alphaTestId = m_module.specConstBool(false); - uint32_t alphaFuncId = m_module.specConst32(m_module.defIntType(32, 0), uint32_t(VK_COMPARE_OP_ALWAYS)); + uint32_t alphaFuncId = m_module.specConst32(m_module.defIntType(32, 0), 0); m_module.setDebugName(alphaTestId, "alpha_test"); m_module.decorateSpecId(alphaTestId, getSpecId(D3D9SpecConstantId::AlphaTestEnable)); diff --git a/src/dxso/dxso_compiler.cpp b/src/dxso/dxso_compiler.cpp index 4b8e5752..799b1300 100644 --- a/src/dxso/dxso_compiler.cpp +++ b/src/dxso/dxso_compiler.cpp @@ -3557,7 +3557,7 @@ void DxsoCompiler::emitControlFlowGenericLoop( // Declare spec constants for render states uint32_t alphaTestId = m_module.specConstBool(false); - uint32_t alphaFuncId = m_module.specConst32(m_module.defIntType(32, 0), uint32_t(VK_COMPARE_OP_ALWAYS)); + uint32_t alphaFuncId = m_module.specConst32(m_module.defIntType(32, 0), 0); m_module.setDebugName (alphaTestId, "alpha_test"); m_module.decorateSpecId (alphaTestId, getSpecId(D3D9SpecConstantId::AlphaTestEnable));