Browse Source

Merge branch '0.9.7'

Christophe Riccio 9 years ago
parent
commit
93a2f03649
3 changed files with 6 additions and 4 deletions
  1. 3 3
      glm/detail/type_vec4.inl
  2. 1 1
      glm/gtx/string_cast.inl
  3. 2 0
      readme.md

+ 3 - 3
glm/detail/type_vec4.inl

@@ -722,7 +722,7 @@ namespace glm
 	}
 
 	template <typename T, precision P>
-	GLM_FUNC_DECL 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.x - v2.x,
@@ -772,7 +772,7 @@ namespace glm
 	}
 
 	template <typename T, precision P>
-	GLM_FUNC_DECL 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.x * v2.x,
@@ -822,7 +822,7 @@ namespace glm
 	}
 
 	template <typename T, precision P>
-	GLM_FUNC_DECL 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.x / v2.x,

+ 1 - 1
glm/gtx/string_cast.inl

@@ -479,7 +479,7 @@ namespace detail
 }//namespace detail
 
 template <template <typename, precision> class matType, typename T, precision P>
-GLM_FUNC_DECL std::string to_string(matType<T, P> const & x)
+GLM_FUNC_QUALIFIER std::string to_string(matType<T, P> const & x)
 {
 	return detail::compute_to_string<matType, T, P>::call(x);
 }

+ 2 - 0
readme.md

@@ -85,6 +85,8 @@ glm::mat4 camera(float Translate, glm::vec2 const & Rotate)
 - Fixed uaddCarry warning #497
 - Fixed roundPowerOfTwo and floorPowerOfTwo #503
 - Fixed Visual C++ SIMD instruction set automatic detection in 64 bits
+- Fixed to_string when used with GLM_FORCE_INLINE #506
+- Fixed GLM_FORCE_INLINE with binary vec4 operators
 
 #### [GLM 0.9.7.4](https://github.com/g-truc/glm/releases/tag/0.9.7.4) - 2016-03-19
 ##### Fixes: