dolphin-emu/dolphin — pull request #1780 by phire (2014-12-28 07:55:06+00:00)
Title: Improve zfreeze in software renderer.

Previous code only worked if the reference zplane was flat. In other cases it used the position of vertex one each new polygon to offset the lookup into the zplane.

NHL 2003 shadows now render without zfighting, but most other games with zfreeze have issues.