mirror of
https://github.com/g-truc/glm.git
synced 2024-11-26 10:14:35 +00:00
Merge pull request #1146 from stephen-hqxu/cuda-constexpr-abs
Fix: CUDA compiler error on constexpr abs function #1146
This commit is contained in:
commit
65c16d5da1
@ -28,7 +28,7 @@ namespace detail
|
|||||||
template<>
|
template<>
|
||||||
struct compute_abs<float, true>
|
struct compute_abs<float, true>
|
||||||
{
|
{
|
||||||
GLM_FUNC_QUALIFIER GLM_CONSTEXPR static float call(float x)
|
GLM_FUNC_QUALIFIER static float call(float x)
|
||||||
{
|
{
|
||||||
return fabsf(x);
|
return fabsf(x);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user