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:
authorBrecht Van Lommel <brechtvanlommel@gmail.com>2020-02-15 14:59:42 +0300
committerBrecht Van Lommel <brechtvanlommel@gmail.com>2020-02-15 15:44:20 +0300
commit924fe50e97cd4cc130d96f0c4f23664052c31458 (patch)
treedb41994c90fc6fa448076c1125b126b088040916 /intern/cycles/kernel/shaders
parent39fb33f0b7a848c5e77d00499837b58a73a7e146 (diff)
Cleanup: fix compiler warning
Diffstat (limited to 'intern/cycles/kernel/shaders')
-rw-r--r--intern/cycles/kernel/shaders/node_math.h5
1 files changed, 0 insertions, 5 deletions
diff --git a/intern/cycles/kernel/shaders/node_math.h b/intern/cycles/kernel/shaders/node_math.h
index 9baf1014418..7d8478672af 100644
--- a/intern/cycles/kernel/shaders/node_math.h
+++ b/intern/cycles/kernel/shaders/node_math.h
@@ -63,11 +63,6 @@ float safe_log(float a, float b)
return (a > 0.0 && b > 0.0) ? log(a) / log(b) : 0.0;
}
-float safe_divide(float a, float b)
-{
- return (b != 0.0) ? a / b : 0.0;
-}
-
vector project(vector v, vector v_proj)
{
float lenSquared = dot(v_proj, v_proj);