From 753e9b3b1682c1dcee9a4f7d9a934cfde5164cd0 Mon Sep 17 00:00:00 2001 From: raven02 Date: Tue, 1 Jan 2013 13:44:40 +0800 Subject: [PATCH] Fix SW lighting --- GPU/GLES/TransformPipeline.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/GPU/GLES/TransformPipeline.cpp b/GPU/GLES/TransformPipeline.cpp index 03c3c1901f..b05f0aa690 100644 --- a/GPU/GLES/TransformPipeline.cpp +++ b/GPU/GLES/TransformPipeline.cpp @@ -227,7 +227,7 @@ void Lighter::Light(float colorOut0[4], float colorOut1[4], const float colorIn[ dots[l] = dot; if (gstate.lightEnable[l] & 1) { - Color4 lightAmbient(gstate_c.lightColor[2][l], 1.0f); + Color4 lightAmbient(gstate_c.lightColor[0][l], 1.0f); lightSum0 += lightAmbient * *ambient + diff; } }