summaryrefslogtreecommitdiff
path: root/src/renderergl2
diff options
context:
space:
mode:
author/dev/humancontroller <devhc@example.com>2015-02-02 00:14:07 +0100
committer/dev/humancontroller <devhc@example.com>2017-02-07 17:34:59 +0100
commit8ab2f0b3081f53692836035aedd2546b607decc8 (patch)
tree8b2546da501e0e41680eba299c92cf95ebb9ebff /src/renderergl2
parent183bbefa717ea98eecdd864535eac5126263b6bc (diff)
fix some usages of abs(), part 1: non-gamelogic-changing changes
detected by Clang changes in tr_main.c reviewed by SmileTheory
Diffstat (limited to 'src/renderergl2')
-rw-r--r--src/renderergl2/tr_main.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/renderergl2/tr_main.c b/src/renderergl2/tr_main.c
index 9751ecb3..3fc7c06c 100644
--- a/src/renderergl2/tr_main.c
+++ b/src/renderergl2/tr_main.c
@@ -2363,7 +2363,7 @@ void R_RenderPshadowMaps(const refdef_t *fd)
VectorScale(lightDir, -1.0f, shadow->lightViewAxis[0]);
VectorSet(up, 0, 0, -1);
- if ( abs(DotProduct(up, shadow->lightViewAxis[0])) > 0.9f )
+ if ( fabsf(DotProduct(up, shadow->lightViewAxis[0])) > 0.9f )
{
VectorSet(up, -1, 0, 0);
}
@@ -2606,7 +2606,7 @@ void R_RenderSunShadowMaps(const refdef_t *fd, int level)
}
// Check if too close to parallel to light direction
- if (abs(DotProduct(lightViewAxis[2], lightViewAxis[0])) > 0.9f)
+ if (fabsf(DotProduct(lightViewAxis[2], lightViewAxis[0])) > 0.9f)
{
if (level == 3 || lightViewIndependentOfCameraView)
{