[Bf-blender-cvs] [9617446] master: Cycles: Fix compilation error with some compilers
Sergey Sharybin
noreply at git.blender.org
Thu Jan 22 13:05:14 CET 2015
Commit: 9617446be24af967d64f9bbb611b1f84eba29b3a
Author: Sergey Sharybin
Date: Thu Jan 22 17:04:01 2015 +0500
Branches: master
https://developer.blender.org/rB9617446be24af967d64f9bbb611b1f84eba29b3a
Cycles: Fix compilation error with some compilers
Not sure why this was not visible previously, but the change is
logical anyway.
===================================================================
M intern/cycles/util/util_math.h
===================================================================
diff --git a/intern/cycles/util/util_math.h b/intern/cycles/util/util_math.h
index 623849e..f9e160a 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. */
More information about the Bf-blender-cvs
mailing list