Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSergey Sharybin <sergey.vfx@gmail.com>2015-01-22 15:04:01 +0300
committerSergey Sharybin <sergey.vfx@gmail.com>2015-01-22 15:04:01 +0300
commit9617446be24af967d64f9bbb611b1f84eba29b3a (patch)
tree26e8e556baedc7d087f74066fe10316d3d559106 /intern/cycles/util
parentcae72caa82714107909fbfeb1ebc09653dce0767 (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/cycles/util')
-rw-r--r--intern/cycles/util/util_math.h2
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. */