Request a slot update when the gain changes

This commit is contained in:
Chris Robinson
2011-07-16 03:15:28 -07:00
parent 3bd7256dc8
commit 292ea0607d
+3
View File
@@ -264,7 +264,10 @@ AL_API ALvoid AL_APIENTRY alAuxiliaryEffectSlotf(ALuint effectslot, ALenum param
{
case AL_EFFECTSLOT_GAIN:
if(flValue >= 0.0f && flValue <= 1.0f)
{
EffectSlot->Gain = flValue;
EffectSlot->NeedsUpdate = AL_TRUE;
}
else
alSetError(Context, AL_INVALID_VALUE);
break;