diff --git a/glm/gtc/matrix_transform.inl b/glm/gtc/matrix_transform.inl index cadf479d..cdc47894 100644 --- a/glm/gtc/matrix_transform.inl +++ b/glm/gtc/matrix_transform.inl @@ -419,10 +419,9 @@ namespace glm detail::tvec3 const & up ) { - detail::tvec3 f = normalize(center - eye); - detail::tvec3 u = normalize(up); - detail::tvec3 s = normalize(cross(f, u)); - u = cross(s, f); + detail::tvec3 f(normalize(center - eye)); + detail::tvec3 s(normalize(cross(f, up))); + detail::tvec3 u(cross(s, f)); detail::tmat4x4 Result(1); Result[0][0] = s.x;