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:
parent
6f2460c70a
commit
3ea3cdc1a8
|
@ -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, ")
|
||||
|
|
Loading…
Reference in New Issue