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:
Diffstat (limited to 'intern/cycles/kernel/svm/ramp.h')
-rw-r--r--intern/cycles/kernel/svm/ramp.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/intern/cycles/kernel/svm/ramp.h b/intern/cycles/kernel/svm/ramp.h
index 1dc3383956d..61093e0bd82 100644
--- a/intern/cycles/kernel/svm/ramp.h
+++ b/intern/cycles/kernel/svm/ramp.h
@@ -44,7 +44,7 @@ ccl_device_inline float float_ramp_lookup(
return t0 + dy * f * (table_size - 1);
}
- f = saturate(f) * (table_size - 1);
+ f = saturatef(f) * (table_size - 1);
/* clamp int as well in case of NaN */
int i = clamp(float_to_int(f), 0, table_size - 1);
@@ -76,7 +76,7 @@ ccl_device_inline float4 rgb_ramp_lookup(
return t0 + dy * f * (table_size - 1);
}
- f = saturate(f) * (table_size - 1);
+ f = saturatef(f) * (table_size - 1);
/* clamp int as well in case of NaN */
int i = clamp(float_to_int(f), 0, table_size - 1);