diff --git a/glm/gtx/matrix_decompose.inl b/glm/gtx/matrix_decompose.inl index 134103f3..694f5eca 100644 --- a/glm/gtx/matrix_decompose.inl +++ b/glm/gtx/matrix_decompose.inl @@ -153,7 +153,7 @@ namespace detail // } 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(0)) { root = sqrt(trace + static_cast(1.0));