Fix implicitly extern shader variable

So the hardcoded values are used,
as values were unintuitively being read from constant registers
This commit is contained in:
Anthony 2021-03-22 22:30:12 +13:00 committed by PatrickvL
parent 6f2460c70a
commit 3ea3cdc1a8
1 changed files with 1 additions and 1 deletions

View File

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