Browse Source

Add GLM_FUNC_QUALIFIER to TMin and TMax operator overloads

1neskk 8 months ago
parent
commit
5db3b61b3d
1 changed files with 2 additions and 2 deletions
  1. 2 2
      glm/detail/func_common.inl

+ 2 - 2
glm/detail/func_common.inl

@@ -22,7 +22,7 @@ namespace glm
 
 	template<typename T>
 	struct TMin {
-		T operator()(const T& a, const T& b) { return min(a, b); }
+		GLM_FUNC_QUALIFIER T operator()(const T& a, const T& b) { return min(a, b); }
 	};
 
 	// max
@@ -36,7 +36,7 @@ namespace glm
 
 	template<typename T>
 	struct TMax {
-		T operator()(const T& a, const T& b) { return max(a, b); }
+		GLM_FUNC_QUALIFIER T operator()(const T& a, const T& b) { return max(a, b); }
 	};
 
 	// abs