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
path: root/intern
diff options
context:
space:
mode:
authorMai Lavelle <mai.lavelle@gmail.com>2017-06-30 05:52:31 +0300
committerMai Lavelle <mai.lavelle@gmail.com>2017-06-30 06:07:18 +0300
commitc8fa716c0603d922d816e1fbc59b0291ced8f94f (patch)
treeecced1c3651c92e2455f4eb399a012b399d7917d /intern
parent56dcfcce059f696ed927f97502579f8286429116 (diff)
Cycles: Use float constants instead of double
Diffstat (limited to 'intern')
-rw-r--r--intern/cycles/util/util_math_float3.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/intern/cycles/util/util_math_float3.h b/intern/cycles/util/util_math_float3.h
index 5327d9f7cc6..bb04c4aa2d9 100644
--- a/intern/cycles/util/util_math_float3.h
+++ b/intern/cycles/util/util_math_float3.h
@@ -374,9 +374,9 @@ ccl_device_inline bool isfinite3_safe(float3 v)
ccl_device_inline float3 ensure_finite3(float3 v)
{
- if(!isfinite_safe(v.x)) v.x = 0.0;
- if(!isfinite_safe(v.y)) v.y = 0.0;
- if(!isfinite_safe(v.z)) v.z = 0.0;
+ if(!isfinite_safe(v.x)) v.x = 0.0f;
+ if(!isfinite_safe(v.y)) v.y = 0.0f;
+ if(!isfinite_safe(v.z)) v.z = 0.0f;
return v;
}