3D: faster and more accurate interpolation

This commit is contained in:
StapleButter
2017-08-17 23:34:37 +02:00
parent bc1385e905
commit d656e6e7ff
2 changed files with 109 additions and 43 deletions

View File

@ -891,6 +891,7 @@ void SubmitPolygon()
else
z = 0x3FFF;
// checkme (Z<0 shouldn't be possible, but Z>0xFFFFFF is possible)
if (z < 0) z = 0;
else if (z > 0xFFFFFF) z = 0xFFFFFF;