From c142d46ca3a1b51a9da04210b051eda33d1645af Mon Sep 17 00:00:00 2001 From: Christophe Riccio Date: Fri, 1 Mar 2019 15:50:44 +0100 Subject: [PATCH] Fixed glm::decompose #869 --- glm/gtx/matrix_decompose.inl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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));