Fixed glm::decompose #869

This commit is contained in:
Christophe Riccio 2019-03-01 15:50:44 +01:00
parent 04af69386d
commit c142d46ca3

View File

@ -153,7 +153,7 @@ namespace detail
// } // }
int i, j, k = 0; int i, j, k = 0;
float root, trace = Row[0].x + Row[1].y + Row[2].z; T root, trace = Row[0].x + Row[1].y + Row[2].z;
if(trace > static_cast<T>(0)) if(trace > static_cast<T>(0))
{ {
root = sqrt(trace + static_cast<T>(1.0)); root = sqrt(trace + static_cast<T>(1.0));