hrydgard/ppsspp — pull request #3547 by unknownbrackets (2013-09-01 10:19:30+00:00)
Title: Fix lighting when lightpos and spec coef are 0

Zero to the power of zero is mathematically undefined, NVIDIA chokes but AMD seems to accept it as 1.0. Not well tested on Android.

Fixes #2424.

Would use isnan() but seems unavailable on our targets.

http://www.askamathematician.com/2010/12/q-what-does-00-zero-raised-to-the-zeroth-power-equal-why-do-mathematicians-and-high-school-teachers-disagree/

-[Unknown]