mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-25 23:29:44 -06:00
VideoCommon: fix compilation error in pixel shaders when per-pixel lighting isn't set for custom shaders
This commit is contained in:
@ -839,6 +839,7 @@ void WriteCustomShaderStructImpl(ShaderCode* out, u32 num_stages, bool per_pixel
|
|||||||
texcoord);
|
texcoord);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (per_pixel_lighting)
|
||||||
GenerateCustomLightingImplementation(out, uid_data->lighting, "colors_");
|
GenerateCustomLightingImplementation(out, uid_data->lighting, "colors_");
|
||||||
|
|
||||||
for (u32 i = 0; i < 16; i++)
|
for (u32 i = 0; i < 16; i++)
|
||||||
|
Reference in New Issue
Block a user