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:
authorCampbell Barton <ideasman42@gmail.com>2012-02-04 10:55:29 +0400
committerCampbell Barton <ideasman42@gmail.com>2012-02-04 10:55:29 +0400
commitdeec4ce0bc77519f68392bc5b29ef211a31f1588 (patch)
tree81865ab303df791e61d9b50e849c53791be0ce0a /source/blender/render/intern
parenta05fdb837b89f2fba04587e99d0eecaa9cf174c3 (diff)
Code Cleanup: avoid double promotion.
Diffstat (limited to 'source/blender/render/intern')
-rw-r--r--source/blender/render/intern/source/occlusion.c2
-rw-r--r--source/blender/render/intern/source/zbuf.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/render/intern/source/occlusion.c b/source/blender/render/intern/source/occlusion.c
index 782e0b59388..669355c9977 100644
--- a/source/blender/render/intern/source/occlusion.c
+++ b/source/blender/render/intern/source/occlusion.c
@@ -1408,7 +1408,7 @@ static void sample_occ_tree(Render *re, OcclusionTree *tree, OccFace *exclude, f
occlusion= (1.0f-correction)*(1.0f-occ);
CLAMP(occlusion, 0.0f, 1.0f);
if(correction != 0.0f)
- occlusion += correction*exp(-occ);
+ occlusion += correction*expf(-occ);
if(env) {
/* sky shading using bent normal */
diff --git a/source/blender/render/intern/source/zbuf.c b/source/blender/render/intern/source/zbuf.c
index 0d5aed7dadb..807a3d7d0eb 100644
--- a/source/blender/render/intern/source/zbuf.c
+++ b/source/blender/render/intern/source/zbuf.c
@@ -245,7 +245,7 @@ int testclip(const float v[4])
/* if we set clip flags, the clipping should be at least larger than epsilon.
prevents issues with vertices lying exact on borders */
- abs4= fabs(v[3]) + FLT_EPSILON;
+ abs4= fabsf(v[3]) + FLT_EPSILON;
if( v[0] < -abs4) c+=1;
else if( v[0] > abs4) c+=2;