Merge pull request #1146 from stephen-hqxu/cuda-constexpr-abs

Fix: CUDA compiler error on constexpr abs function #1146
master
Christophe ago%!(EXTRA string=2 years) committed by GitHub
commit 65c16d5da1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      glm/detail/compute_common.hpp

@ -28,7 +28,7 @@ namespace detail
template<>
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);
}

Loading…
Cancel
Save