]> git.tdb.fi Git - libs/gl.git/commit
Fix matrix interpolation parameter calculation
authorMikko Rasa <tdb@tdb.fi>
Sat, 16 Jun 2018 12:23:01 +0000 (15:23 +0300)
committerMikko Rasa <tdb@tdb.fi>
Sat, 16 Jun 2018 12:23:01 +0000 (15:23 +0300)
commite1e69c49b7727223a43cdc2deac4f1c03a3e3aba
tree13e5a5f33f6d52822a1b1c5a1ec633b018628d50
parentbf1f59c4dca6b651e39c126c63a0780b65a34927
Fix matrix interpolation parameter calculation

With an x87 FPU and compiler optimizations enabled, the code could end up
taking arccos of a value very slightly larger than one.  This would result
in a NaN and destroy the matrix contents.
source/animation.cpp