Skip to content

Commit 5db3b61

Browse files
1neskkchristophe-lunarg
authored andcommitted
Add GLM_FUNC_QUALIFIER to TMin and TMax operator overloads
1 parent 78049f1 commit 5db3b61

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

glm/detail/func_common.inl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ namespace glm
2222

2323
template<typename T>
2424
struct TMin {
25-
T operator()(const T& a, const T& b) { return min(a, b); }
25+
GLM_FUNC_QUALIFIER T operator()(const T& a, const T& b) { return min(a, b); }
2626
};
2727

2828
// max
@@ -36,7 +36,7 @@ namespace glm
3636

3737
template<typename T>
3838
struct TMax {
39-
T operator()(const T& a, const T& b) { return max(a, b); }
39+
GLM_FUNC_QUALIFIER T operator()(const T& a, const T& b) { return max(a, b); }
4040
};
4141

4242
// abs

0 commit comments

Comments
 (0)