From 85cc87e42a9adaa631593abfd06ec281001eae63 Mon Sep 17 00:00:00 2001 From: Philip Rebohle Date: Thu, 18 Aug 2022 17:08:59 +0200 Subject: [PATCH] [d3d9] Fix invalid shader in fixed-function alpha test --- src/d3d9/d3d9_fixed_function.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/d3d9/d3d9_fixed_function.cpp b/src/d3d9/d3d9_fixed_function.cpp index bd9edc575..cc6628214 100644 --- a/src/d3d9/d3d9_fixed_function.cpp +++ b/src/d3d9/d3d9_fixed_function.cpp @@ -2377,7 +2377,7 @@ namespace dxvk { D3D9AlphaTestContext alphaTestContext; alphaTestContext.alphaFuncId = m_spec.get(m_module, m_specUbo, SpecAlphaCompareOp); alphaTestContext.alphaPrecisionId = m_spec.get(m_module, m_specUbo, SpecAlphaPrecisionBits); - alphaTestContext.alphaRefId = m_module.opLoad(m_floatType, + alphaTestContext.alphaRefId = m_module.opLoad(m_uint32Type, m_module.opAccessChain(uintPtr, m_rsBlock, 1, &alphaRefMember)); alphaTestContext.alphaId = m_module.opCompositeExtract(m_floatType, m_module.opLoad(m_vec4Type, oC0),