From 083be0832fb590e131b0d6e6dbbe6ec1fba15fa9 Mon Sep 17 00:00:00 2001 From: degasus Date: Wed, 28 Sep 2016 23:31:10 +0200 Subject: LightingShader: Drop xfmem usage. Our shaders must only depend on the UID, not on any global state. --- Source/Core/VideoCommon/VertexShaderGen.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'Source/Core/VideoCommon/VertexShaderGen.cpp') 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) { -- cgit v1.2.3