mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-31 05:08:57 +00:00
VideoCommon: fix compilation error in pixel shaders when per-pixel lighting isn't set for custom shaders
This commit is contained in:
parent
a8d45b8e55
commit
cf081e839d
1 changed files with 2 additions and 1 deletions
|
@ -839,7 +839,8 @@ void WriteCustomShaderStructImpl(ShaderCode* out, u32 num_stages, bool per_pixel
|
||||||
texcoord);
|
texcoord);
|
||||||
}
|
}
|
||||||
|
|
||||||
GenerateCustomLightingImplementation(out, uid_data->lighting, "colors_");
|
if (per_pixel_lighting)
|
||||||
|
GenerateCustomLightingImplementation(out, uid_data->lighting, "colors_");
|
||||||
|
|
||||||
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