summaryrefslogtreecommitdiff
path: root/Source/Core/VideoCommon/VertexShaderGen.cpp
diff options
context:
space:
mode:
authorMarkus Wick <degasus@users.noreply.github.com>2016-10-05 12:20:58 +0200
committerGitHub <noreply@github.com>2016-10-05 12:20:58 +0200
commitef1bfc26b2f109e650b40f7b88275832366cc12b (patch)
tree3ac89bde07bf8d431e0f9124f657ad6aa7e55059 /Source/Core/VideoCommon/VertexShaderGen.cpp
parent22d925992663f27d200dd9dfcf3085884b74f08d (diff)
parent6d2827ff6b781e2d7cbb1b242e23a635ab708050 (diff)
Merge pull request #4291 from degasus/shader_gen
PixelShaderGen: Fix UID issues.
Diffstat (limited to 'Source/Core/VideoCommon/VertexShaderGen.cpp')
-rw-r--r--Source/Core/VideoCommon/VertexShaderGen.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/Source/Core/VideoCommon/VertexShaderGen.cpp b/Source/Core/VideoCommon/VertexShaderGen.cpp
index 7725331193..11a9e40de0 100644
--- a/Source/Core/VideoCommon/VertexShaderGen.cpp
+++ b/Source/Core/VideoCommon/VertexShaderGen.cpp
@@ -250,7 +250,8 @@ ShaderCode GenerateVertexShaderCode(APIType api_type, const vertex_shader_uid_da
out.Write("o.colors_0 = float4(1.0, 1.0, 1.0, 1.0);\n");
}
- GenerateLightingShaderCode(out, uid_data->lighting, uid_data->components, "color", "o.colors_");
+ GenerateLightingShaderCode(out, uid_data->lighting, uid_data->components, uid_data->numColorChans,
+ "color", "o.colors_");
if (uid_data->numColorChans < 2)
{