From 92deba031025b24523c9606831554cfca4fbf1c8 Mon Sep 17 00:00:00 2001 From: Georg Lehmann Date: Sun, 8 Aug 2021 11:36:47 +0200 Subject: [PATCH] [d3d9] Implement D3DTOP_BLENDTEXTUREALPHAPM --- src/d3d9/d3d9_fixed_function.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/d3d9/d3d9_fixed_function.cpp b/src/d3d9/d3d9_fixed_function.cpp index e04f3793..826dca8b 100644 --- a/src/d3d9/d3d9_fixed_function.cpp +++ b/src/d3d9/d3d9_fixed_function.cpp @@ -1810,7 +1810,8 @@ namespace dxvk { break; case D3DTOP_BLENDTEXTUREALPHAPM: - Logger::warn("D3DTOP_BLENDTEXTUREALPHAPM: not implemented"); + dst = m_module.opFFma(m_vec4Type, arg[2], Complement(AlphaReplicate(GetTexture())), arg[1]); + dst = Saturate(dst); break; case D3DTOP_BLENDCURRENTALPHA: