diff --git a/glm/gtx/intersect.inl b/glm/gtx/intersect.inl index 54ecb4d9..95e81e8b 100644 --- a/glm/gtx/intersect.inl +++ b/glm/gtx/intersect.inl @@ -108,7 +108,7 @@ namespace glm genType Perpendicular = cross(dir, edge2); - float det = dot(edge1, Perpendicular); + typename genType::value_type det = dot(edge1, Perpendicular); if (det > -Epsilon && det < Epsilon) return false;