aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2012-10-12 08:01:02 -0700
committerChris Robinson <[email protected]>2012-10-12 08:01:02 -0700
commita3d4868ef4aff13da8c2e9fde88e1f6a479ac7d2 (patch)
treeff6457f2e1faaba8ef8dad5decc2860f3729e192
parent815b03855b40a1ab65b4109bbdbbc16d69287f21 (diff)
Initialize the listener velocity parameter
-rw-r--r--Alc/ALc.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/Alc/ALc.c b/Alc/ALc.c
index bcd242d6..1b157666 100644
--- a/Alc/ALc.c
+++ b/Alc/ALc.c
@@ -1820,6 +1820,8 @@ static ALvoid InitContext(ALCcontext *Context)
for(j = 0;j < 4;j++)
Context->Listener->Params.Matrix[i][j] = ((i==j) ? 1.0f : 0.0f);
}
+ for(i = 0;i < 3;i++)
+ Context->Listener->Params.Velocity[i] = 0.0f;
//Validate Context
Context->LastError = AL_NO_ERROR;