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, ")