mirror of
https://github.com/g-truc/glm.git
synced 2026-09-02 00:18:08 +00:00
Add GLM_FUNC_QUALIFIER to TMin and TMax operator overloads
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user