Browse Source

Fixed build error #524

Christophe Riccio 9 years ago
parent
commit
46cd601681
1 changed files with 1 additions and 1 deletions
  1. 1 1
      glm/detail/type_vec4.inl

+ 1 - 1
glm/detail/type_vec4.inl

@@ -686,7 +686,7 @@ namespace detail
 	template <typename T, precision P>
 	template <typename T, precision P>
 	GLM_FUNC_QUALIFIER tvec4<T, P> operator-(tvec1<T, P> const & v1, tvec4<T, P> const & v2)
 	GLM_FUNC_QUALIFIER tvec4<T, P> operator-(tvec1<T, P> const & v1, tvec4<T, P> const & v2)
 	{
 	{
-		return tvec4<T, P>(v1) -= v2;
+		return tvec4<T, P>(v1.x) -= v2;
 	}
 	}
 
 
 	template <typename T, precision P>
 	template <typename T, precision P>