summaryrefslogtreecommitdiff
path: root/Source/Core/VideoCommon/LightingShaderGen.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/LightingShaderGen.cpp
parent22d925992663f27d200dd9dfcf3085884b74f08d (diff)
parent6d2827ff6b781e2d7cbb1b242e23a635ab708050 (diff)
Merge pull request #4291 from degasus/shader_gen
PixelShaderGen: Fix UID issues.
Diffstat (limited to 'Source/Core/VideoCommon/LightingShaderGen.cpp')
-rw-r--r--Source/Core/VideoCommon/LightingShaderGen.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/Source/Core/VideoCommon/LightingShaderGen.cpp b/Source/Core/VideoCommon/LightingShaderGen.cpp
index 8160364de3..ecc19b7b9f 100644
--- a/Source/Core/VideoCommon/LightingShaderGen.cpp
+++ b/Source/Core/VideoCommon/LightingShaderGen.cpp
@@ -72,9 +72,9 @@ static void GenerateLightShader(ShaderCode& object, const LightingUidData& uid_d
// inColorName is color in vs and colors_ in ps
// dest is o.colors_ in vs and colors_ in ps
void GenerateLightingShaderCode(ShaderCode& object, const LightingUidData& uid_data, int components,
- const char* inColorName, const char* dest)
+ u32 numColorChans, const char* inColorName, const char* dest)
{
- for (unsigned int j = 0; j < xfmem.numChan.numColorChans; j++)
+ for (unsigned int j = 0; j < numColorChans; j++)
{
object.Write("{\n");
@@ -200,4 +200,4 @@ void GetLightingShaderUid(LightingUidData& uid_data)
uid_data.light_mask |= xfmem.alpha[j].GetFullLightMask() << (8 * (j + 2));
}
}
-} \ No newline at end of file
+}