mirror of
https://github.com/libretro/ppsspp.git
synced 2024-12-16 21:56:48 +00:00
Fix black screen issue in SW T&L
This commit is contained in:
parent
610de43719
commit
3f0d8cba83
@ -287,6 +287,8 @@ void Lighter::Light(float colorOut0[4], float colorOut1[4], const float colorIn[
|
||||
|
||||
float distanceToLight = toLight.Length();
|
||||
float dot = 0.0f;
|
||||
Vec3 norm(0,0,0);
|
||||
|
||||
if (distanceToLight > 0.0f)
|
||||
{
|
||||
toLight /= distanceToLight;
|
||||
|
Loading…
Reference in New Issue
Block a user