mirror of
https://github.com/g-truc/glm.git
synced 2025-04-10 15:23:53 +00:00
fix: fastNormalize ambiguity
Declarations in fast_square_root.hpp do not match qualifiers fast_square_root.inl; will generate: "call to 'fastNormalize' is ambiguous" errors.
This commit is contained in:
parent
b3f8772026
commit
c00f046c85
1 changed files with 7 additions and 1 deletions
|
@ -84,7 +84,13 @@ namespace glm
|
|||
///
|
||||
/// @see gtx_fast_square_root extension.
|
||||
template<typename genType>
|
||||
GLM_FUNC_DECL genType fastNormalize(genType const& x);
|
||||
GLM_FUNC_DECL genType fastNormalize(genType x);
|
||||
|
||||
/// Faster than the common normalize function but less accurate.
|
||||
///
|
||||
/// @see gtx_fast_square_root extension.
|
||||
template<length_t L, typename T, qualifier Q>
|
||||
GLM_FUNC_DECL vec<L, T, Q> fastNormalize(vec<L, T, Q> const& x);
|
||||
|
||||
/// @}
|
||||
}// namespace glm
|
||||
|
|
Loading…
Add table
Reference in a new issue