Skip to content

Commit

Permalink
VideoCommon: fix compilation error in pixel shaders when per-pixel li…
Browse files Browse the repository at this point in the history
…ghting isn't set for custom shaders
  • Loading branch information
iwubcode committed Jan 24, 2024
1 parent 725f65a commit 93f33a7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Source/Core/VideoCommon/PixelShaderGen.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -839,7 +839,8 @@ void WriteCustomShaderStructImpl(ShaderCode* out, u32 num_stages, bool per_pixel
texcoord);
}

GenerateCustomLightingImplementation(out, uid_data->lighting, "colors_");
if (per_pixel_lighting)
GenerateCustomLightingImplementation(out, uid_data->lighting, "colors_");

for (u32 i = 0; i < 16; i++)
{
Expand Down

0 comments on commit 93f33a7

Please sign in to comment.