summaryrefslogtreecommitdiffhomepage
path: root/src/rlgl.h
diff options
context:
space:
mode:
authorRay <[email protected]>2020-02-28 12:54:39 +0100
committerRay <[email protected]>2020-02-28 12:54:39 +0100
commit1ee6290fcfebea2fa3a0a5a68c1c395974ebb436 (patch)
treeebab3b98439f1ae5d7c0a36c591cf50bf59d84a1 /src/rlgl.h
parent572969d8b7889856bf59a470c5ffe56a2d14761f (diff)
downloadraylib-1ee6290fcfebea2fa3a0a5a68c1c395974ebb436.tar.gz
raylib-1ee6290fcfebea2fa3a0a5a68c1c395974ebb436.zip
Replaced fabs() by fabsf() when required
Diffstat (limited to 'src/rlgl.h')
-rw-r--r--src/rlgl.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/rlgl.h b/src/rlgl.h
index f2c796de..536f8103 100644
--- a/src/rlgl.h
+++ b/src/rlgl.h
@@ -612,10 +612,10 @@ RLAPI int GetPixelDataSize(int width, int height, int format);// Get pixel data
#endif
#endif
-#include <stdlib.h> // Required for: malloc(), free(), fabs()
+#include <stdlib.h> // Required for: malloc(), free()
#include <stdio.h> // Required for: fopen(), fseek(), fread(), fclose() [LoadText]
#include <string.h> // Required for: strcmp(), strlen() [Used in rlglInit(), on extensions loading]
-#include <math.h> // Required for: atan2f()
+#include <math.h> // Required for: atan2f(), fabs()
#if !defined(RLGL_STANDALONE)
#include "raymath.h" // Required for: Vector3 and Matrix functions
@@ -3662,7 +3662,7 @@ void SetVrConfiguration(VrDeviceInfo hmd, Shader distortion)
// Compute distortion scale parameters
// NOTE: To get lens max radius, lensShift must be normalized to [-1..1]
- float lensRadius = (float)fabs(-1.0f - 4.0f*lensShift);
+ float lensRadius = fabsf(-1.0f - 4.0f*lensShift);
float lensRadiusSq = lensRadius*lensRadius;
float distortionScale = hmd.lensDistortionValues[0] +
hmd.lensDistortionValues[1]*lensRadiusSq +