diff options
author | Chris Robinson <[email protected]> | 2016-05-15 01:19:05 -0700 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2016-05-15 01:19:05 -0700 |
commit | 576c1116a65bd66effce6d92d1aa7e21d1dee83a (patch) | |
tree | 5b7137d90d74e005c9a042ed2c1eef8b4858d7b8 /Alc/ALc.c | |
parent | b3338d25f6d4fd02935ac83d0d3f227b145307d1 (diff) |
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.
Diffstat (limited to 'Alc/ALc.c')
-rw-r--r-- | Alc/ALc.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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); |