From 3ea3cdc1a8e2ce6f579a0e1a1d9c5927591101fc Mon Sep 17 00:00:00 2001 From: Anthony Date: Mon, 22 Mar 2021 22:30:12 +1300 Subject: [PATCH] Fix implicitly extern shader variable So the hardcoded values are used, as values were unintuitively being read from constant registers --- src/core/hle/D3D8/Direct3D9/PixelShader.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/hle/D3D8/Direct3D9/PixelShader.cpp b/src/core/hle/D3D8/Direct3D9/PixelShader.cpp index 60df135ad..755648bd3 100644 --- a/src/core/hle/D3D8/Direct3D9/PixelShader.cpp +++ b/src/core/hle/D3D8/Direct3D9/PixelShader.cpp @@ -289,7 +289,7 @@ void BuildShader(DecodedRegisterCombiner* pShader, std::stringstream& hlsl) hlsl << hlsl_template[0]; // Start with the HLSL template header - hlsl << "\nbool alphakill[4] = {" + hlsl << "\nstatic bool alphakill[4] = {" << (pShader->AlphaKill[0] ? "true, " : "false, ") << (pShader->AlphaKill[1] ? "true, " : "false, ") << (pShader->AlphaKill[2] ? "true, " : "false, ")