diff options
author | Sergey Sharybin <sergey.vfx@gmail.com> | 2015-01-22 15:04:01 +0300 |
---|---|---|
committer | Sergey Sharybin <sergey.vfx@gmail.com> | 2015-01-22 15:04:01 +0300 |
commit | 9617446be24af967d64f9bbb611b1f84eba29b3a (patch) | |
tree | 26e8e556baedc7d087f74066fe10316d3d559106 /intern | |
parent | cae72caa82714107909fbfeb1ebc09653dce0767 (diff) |
Cycles: Fix compilation error with some compilers
Not sure why this was not visible previously, but the change is
logical anyway.
Diffstat (limited to 'intern')
-rw-r--r-- | intern/cycles/util/util_math.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/intern/cycles/util/util_math.h b/intern/cycles/util/util_math.h index 623849ea7c7..f9e160ac822 100644 --- a/intern/cycles/util/util_math.h +++ b/intern/cycles/util/util_math.h @@ -1457,7 +1457,7 @@ ccl_device void map_to_tube(float *r_u, float *r_v, *r_v = (z + 1.0f) * 0.5f; len = sqrtf(x * x + y * y); if (len > 0.0f) { - *r_u = (1.0f - (atan2f(x / len, y / len) / (float)M_PI)) * 0.5f; + *r_u = (1.0f - (atan2f(x / len, y / len) / M_PI_F)) * 0.5f; } else { *r_v = *r_u = 0.0f; /* To avoid un-initialized variables. */ |