From 93a94d177c4bb0b9c8feb85420a388d32df4cc8f Mon Sep 17 00:00:00 2001 From: Chris Robinson Date: Fri, 13 May 2016 18:28:01 -0700 Subject: Get rid of an unnecessary copy of ALeffectProps --- Alc/effects/compressor.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'Alc/effects/compressor.c') diff --git a/Alc/effects/compressor.c b/Alc/effects/compressor.c index c501b3ba..6329d3f1 100644 --- a/Alc/effects/compressor.c +++ b/Alc/effects/compressor.c @@ -56,12 +56,12 @@ static ALboolean ALcompressorState_deviceUpdate(ALcompressorState *state, ALCdev return AL_TRUE; } -static ALvoid ALcompressorState_update(ALcompressorState *state, const ALCdevice *device, const ALeffectslot *slot) +static ALvoid ALcompressorState_update(ALcompressorState *state, const ALCdevice *device, const ALeffectslot *slot, const ALeffectProps *props) { aluMatrixf matrix; ALuint i; - state->Enabled = slot->Params.EffectProps.Compressor.OnOff; + state->Enabled = props->Compressor.OnOff; aluMatrixfSet(&matrix, 1.0f, 0.0f, 0.0f, 0.0f, -- cgit v1.2.3