diff --git a/glm/detail/func_geometric.inl b/glm/detail/func_geometric.inl index 329a69cd..fd513990 100644 --- a/glm/detail/func_geometric.inl +++ b/glm/detail/func_geometric.inl @@ -105,7 +105,7 @@ namespace detail } template class vecType> - GLM_FUNC_QUALIFIER vecType distance(vecType const & p0, vecType const & p1) + GLM_FUNC_QUALIFIER T distance(vecType const & p0, vecType const & p1) { return length(p1 - p0); }