fabsf() not working with TCC
Replaced by fabs() that seem to work ok
This commit is contained in:
parent
dbff40944a
commit
0148432588
1 changed files with 18 additions and 18 deletions
|
|
@ -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 +
|
||||
|
|
|
|||
Loading…
Reference in a new issue