From 8cc3f01b7b87e2b7e7d37432e7effe9810cad4cb Mon Sep 17 00:00:00 2001 From: BeaR Date: Tue, 16 Apr 2013 19:22:18 +0200 Subject: [PATCH] Use correct state for lmode --- GPU/GLES/TransformPipeline.cpp | 2 +- GPU/GPUState.h | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/GPU/GLES/TransformPipeline.cpp b/GPU/GLES/TransformPipeline.cpp index bc907c210d..a571c93e2b 100644 --- a/GPU/GLES/TransformPipeline.cpp +++ b/GPU/GLES/TransformPipeline.cpp @@ -583,7 +583,7 @@ void TransformDrawEngine::SoftwareTransformAndDraw( } else { // Summed color into c0 for (int j = 0; j < 4; j++) { - c0[j] = c0[j] + litColor1[j]; + c0[j] = ((c0[j] + litColor1[j]) > 1.0f) ? 1.0f : (c0[j] + litColor1[j]); } } } else { diff --git a/GPU/GPUState.h b/GPU/GPUState.h index 24f624b2af..224343f16a 100644 --- a/GPU/GPUState.h +++ b/GPU/GPUState.h @@ -101,7 +101,7 @@ struct GPUgstate offsetx, offsety, pad111[2], - lmode, + shademodel, reversenormals, pad222, materialupdate, @@ -114,7 +114,7 @@ struct GPUgstate materialspecularcoef, ambientcolor, ambientalpha, - colormodel, + lmode, ltype[4], lpos[12], ldir[12],