diff --git a/Source/Core/VideoBackends/Software/TransformUnit.cpp b/Source/Core/VideoBackends/Software/TransformUnit.cpp index 8897d1e367..a967e85ca3 100644 --- a/Source/Core/VideoBackends/Software/TransformUnit.cpp +++ b/Source/Core/VideoBackends/Software/TransformUnit.cpp @@ -218,6 +218,11 @@ static float CalculateLightAttn(const LightPointer* light, Vec3* _ldir, const Ve switch (chan.attnfunc) { case AttenuationFunc::None: + { + PanicAlertFmt("None lighting in use!"); + ldir = ldir.Normalized(); + break; + } case AttenuationFunc::Dir: { ldir = ldir.Normalized();