Initialize the listener velocity parameter

This commit is contained in:
Chris Robinson
2012-10-12 08:01:02 -07:00
parent 815b03855b
commit a3d4868ef4
+2
View File
@@ -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;