mirror of
https://github.com/hrydgard/ppsspp.git
synced 2025-04-02 11:01:50 -04:00
Fix black screen issue in SW T&L
This commit is contained in:
parent
610de43719
commit
3f0d8cba83
1 changed files with 2 additions and 0 deletions
|
@ -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…
Add table
Reference in a new issue