From 576c1116a65bd66effce6d92d1aa7e21d1dee83a Mon Sep 17 00:00:00 2001 From: Chris Robinson Date: Sun, 15 May 2016 01:19:05 -0700 Subject: Avoid using a flag to specify if the effect state needs to be updated This fixes a potential missed state change if an update with a new state got replaced with one that doesn't. --- Alc/ALc.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'Alc/ALc.c') diff --git a/Alc/ALc.c b/Alc/ALc.c index e5c18d8c..dfbb6c63 100644 --- a/Alc/ALc.c +++ b/Alc/ALc.c @@ -2052,7 +2052,7 @@ static ALCenum UpdateDeviceParams(ALCdevice *device, const ALCint *attrList) RestoreFPUMode(&oldMode); return ALC_INVALID_DEVICE; } - UpdateEffectSlotProps(slot, AL_FALSE); + UpdateEffectSlotProps(slot); } context = ATOMIC_LOAD(&device->ContextList); @@ -2077,7 +2077,7 @@ static ALCenum UpdateDeviceParams(ALCdevice *device, const ALCint *attrList) return ALC_INVALID_DEVICE; } - UpdateEffectSlotProps(slot, AL_FALSE); + UpdateEffectSlotProps(slot); } UnlockUIntMapRead(&context->EffectSlotMap); -- cgit v1.2.3