mirror of
https://github.com/raysan5/raylib.git
synced 2025-12-25 10:22:33 -05:00
fabsf() not working with TCC
Replaced by fabs() that seem to work ok
This commit is contained in:
@ -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 +
|
||||
|
||||
Reference in New Issue
Block a user