VideoCommon: fix compilation error in uber pixel shaders when pixel shader lighting isn't set for custom shaders
This commit is contained in:
parent
7118fc5b7b
commit
a8d45b8e55
|
@ -127,6 +127,8 @@ void WriteCustomShaderStructImpl(ShaderCode* out, u32 num_texgen, bool per_pixel
|
||||||
out->Write("\t}}\n");
|
out->Write("\t}}\n");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (per_pixel_lighting)
|
||||||
|
{
|
||||||
out->Write("\tuint light_count = 0;\n");
|
out->Write("\tuint light_count = 0;\n");
|
||||||
out->Write("\tfor (uint chan = 0u; chan < {}u; chan++)\n", NUM_XF_COLOR_CHANNELS);
|
out->Write("\tfor (uint chan = 0u; chan < {}u; chan++)\n", NUM_XF_COLOR_CHANNELS);
|
||||||
out->Write("\t{{\n");
|
out->Write("\t{{\n");
|
||||||
|
@ -227,6 +229,7 @@ void WriteCustomShaderStructImpl(ShaderCode* out, u32 num_texgen, bool per_pixel
|
||||||
out->Write("\t\t}}\n");
|
out->Write("\t\t}}\n");
|
||||||
}
|
}
|
||||||
out->Write("\t}}\n");
|
out->Write("\t}}\n");
|
||||||
|
}
|
||||||
|
|
||||||
for (u32 i = 0; i < 16; i++)
|
for (u32 i = 0; i < 16; i++)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue