diff options
| author | degasus <wickmarkus@web.de> | 2016-09-28 23:31:10 +0200 |
|---|---|---|
| committer | degasus <wickmarkus@web.de> | 2016-10-04 10:13:46 +0200 |
| commit | 083be0832fb590e131b0d6e6dbbe6ec1fba15fa9 (patch) | |
| tree | fa650f29a4bc265ffcc26eb843480b8d3b10b2f7 /Source/Core/VideoCommon/LightingShaderGen.cpp | |
| parent | 829fc8f0adeaf82d78b695208b24015456d8e52b (diff) | |
LightingShader: Drop xfmem usage.
Our shaders must only depend on the UID, not on any global state.
Diffstat (limited to 'Source/Core/VideoCommon/LightingShaderGen.cpp')
| -rw-r--r-- | Source/Core/VideoCommon/LightingShaderGen.cpp | 6 |
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 +} |
