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:
parent
be3c248c8b
commit
fdc2e2e78f
@ -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));
|
||||
|
@ -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));
|
||||
|
Loading…
x
Reference in New Issue
Block a user