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>2014-03-01 07:20:54 +0400
committerCampbell Barton <ideasman42@gmail.com>2014-03-01 07:26:18 +0400
commit13ea967cce4032564cfbbfe3010b538486f36524 (patch)
treefff7d2eaddd8bc1b6034f76729bb34c12c555607 /source/blender/render
parent315d85faa1b4f58a91041030dcac70085808c038 (diff)
Code cleanup: correct abs use and quiet warnings
Diffstat (limited to 'source/blender/render')
-rw-r--r--source/blender/render/intern/source/pixelshading.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/render/intern/source/pixelshading.c b/source/blender/render/intern/source/pixelshading.c
index feaf68a8c4a..661c8dec5ef 100644
--- a/source/blender/render/intern/source/pixelshading.c
+++ b/source/blender/render/intern/source/pixelshading.c
@@ -517,14 +517,14 @@ void shadeSkyView(float col_r[3], const float rco[3], const float view[3], const
if (blend<0.0f) skyflag= 0;
- blend= fabs(blend);
+ blend = fabsf(blend);
}
else if (R.wrld.skytype & WO_SKYPAPER) {
blend= 0.5f + 0.5f * view[1];
}
else {
/* the fraction of how far we are above the bottom of the screen */
- blend= fabs(0.5f + view[1]);
+ blend = fabsf(0.5f + view[1]);
}
copy_v3_v3(hor, &R.wrld.horr);