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],