Don't set AL_MAX_GAIN for OpenAL listener

it's only for sources
This commit is contained in:
Daniel Gibson 2017-04-21 15:43:16 +02:00
parent 9359d6d51d
commit fafc4d385e

View file

@ -607,7 +607,6 @@ AL_Update(void)
/* set listener (player) parameters */ /* set listener (player) parameters */
AL_CopyVector(listener_forward, orientation); AL_CopyVector(listener_forward, orientation);
AL_CopyVector(listener_up, orientation + 3); AL_CopyVector(listener_up, orientation + 3);
qalListenerf(AL_MAX_GAIN, s_openal_maxgain->value);
qalDistanceModel(AL_LINEAR_DISTANCE_CLAMPED); qalDistanceModel(AL_LINEAR_DISTANCE_CLAMPED);
qalListener3f(AL_POSITION, AL_UnpackVector(listener_origin)); qalListener3f(AL_POSITION, AL_UnpackVector(listener_origin));
qalListenerfv(AL_ORIENTATION, orientation); qalListenerfv(AL_ORIENTATION, orientation);