1
0
mirror of https://github.com/doitsujin/dxvk.git synced 2025-03-14 04:29:15 +01:00

[d3d9] Fix NEVER alpha testing

This commit is contained in:
Georg Lehmann 2021-08-07 19:19:52 +02:00 committed by Joshie
parent be3c248c8b
commit fdc2e2e78f
2 changed files with 2 additions and 2 deletions

View File

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

View File

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