diff --git a/glm/gtx/matrix_decompose.inl b/glm/gtx/matrix_decompose.inl index b3e04cdc..913f8f4d 100644 --- a/glm/gtx/matrix_decompose.inl +++ b/glm/gtx/matrix_decompose.inl @@ -125,7 +125,7 @@ namespace detail { for(length_t i = 0; i < 3; i++) { - Scale.x *= static_cast(-1); + Scale[i] *= static_cast(-1); Row[i] *= static_cast(-1); } }