fabsf() not working with TCC

Replaced by fabs() that seem to work ok
This commit is contained in:
Ray
2018-05-28 00:48:45 +02:00
parent dbff40944a
commit 0148432588
6 changed files with 18 additions and 18 deletions

View File

@ -3948,7 +3948,7 @@ static void SetStereoConfig(VrDeviceInfo hmd)
// Compute distortion scale parameters
// NOTE: To get lens max radius, lensShift must be normalized to [-1..1]
float lensRadius = fabsf(-1.0f - 4.0f*lensShift);
float lensRadius = fabs(-1.0f - 4.0f*lensShift);
float lensRadiusSq = lensRadius*lensRadius;
float distortionScale = hmd.lensDistortionValues[0] +
hmd.lensDistortionValues[1]*lensRadiusSq +