diff --git a/GPU/Software/Lighting.cpp b/GPU/Software/Lighting.cpp index 82315b1b20ab..88a950d9304b 100644 --- a/GPU/Software/Lighting.cpp +++ b/GPU/Software/Lighting.cpp @@ -35,6 +35,9 @@ static inline Vec3f GetLightVec(const u32 lparams[12], int light) { } static inline float pspLightPow(float v, float e) { + if (e <= 0.0f) { + return 1.0f; + } if (v > 0.0f) { return pow(v, e); }