diff --git a/GPU/Common/TransformCommon.cpp b/GPU/Common/TransformCommon.cpp index 4d33f154acc5..cfc2fe75b620 100644 --- a/GPU/Common/TransformCommon.cpp +++ b/GPU/Common/TransformCommon.cpp @@ -47,6 +47,8 @@ Lighter::Lighter(int vertType) { materialUpdate_ = hasColor ? (gstate.materialupdate & 7) : 0; for (int l = 0; l < 4; l++) { + lcutoff[l] = getFloat24(gstate.lcutoff[l]); + lconv[l] = getFloat24(gstate.lconv[l]); int i = l * 3; if (gstate.isLightChanEnabled(l)) { lpos[i] = getFloat24(gstate.lpos[i]); @@ -178,4 +180,4 @@ void Lighter::Light(float colorOut0[4], float colorOut1[4], const float colorIn[ colorOut0[i] = lightSum0[i] > 1.0f ? 1.0f : lightSum0[i]; colorOut1[i] = lightSum1[i] > 1.0f ? 1.0f : lightSum1[i]; } -} \ No newline at end of file +}