diff options
author | Chris Robinson <[email protected]> | 2017-08-21 00:27:52 -0700 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2017-08-21 00:27:52 -0700 |
commit | e7c4681e9a57c60b6432b515681df6c0d153d1da (patch) | |
tree | d0813083e83d4a0586d934adc2686c32bd8424cd /Alc/ALc.c | |
parent | 877ecda14d3b891405e4f803139b686900fd76c4 (diff) |
0 meters per unit is invalid
Diffstat (limited to 'Alc/ALc.c')
-rw-r--r-- | Alc/ALc.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -2515,7 +2515,7 @@ static ALvoid InitContext(ALCcontext *Context) //Initialise listener listener->Gain = 1.0f; - listener->MetersPerUnit = 1.0f; + listener->MetersPerUnit = AL_DEFAULT_METERS_PER_UNIT; listener->Position[0] = 0.0f; listener->Position[1] = 0.0f; listener->Position[2] = 0.0f; @@ -2537,7 +2537,7 @@ static ALvoid InitContext(ALCcontext *Context) ); aluVectorSet(&listener->Params.Velocity, 0.0f, 0.0f, 0.0f, 0.0f); listener->Params.Gain = 1.0f; - listener->Params.MetersPerUnit = 1.0f; + listener->Params.MetersPerUnit = listener->MetersPerUnit; listener->Params.DopplerFactor = 1.0f; listener->Params.SpeedOfSound = SPEEDOFSOUNDMETRESPERSEC; |