mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-30 20:58:54 +00:00
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
1 changed files with 92 additions and 89 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue