diff options
author | Chris Robinson <[email protected]> | 2016-05-12 19:05:06 -0700 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2016-05-12 19:05:06 -0700 |
commit | 210e150601d9b458d446483f5f16e1e67cc6e3ba (patch) | |
tree | c7230d482b5628b334845a1f735ef3d1a42d5a98 /OpenAL32/Include | |
parent | ef0d4f8210fe6aa65b9df96f3b64bf6f355e845a (diff) |
Avoid updating the effect state object if it's not changed
Diffstat (limited to 'OpenAL32/Include')
-rw-r--r-- | OpenAL32/Include/alAuxEffectSlot.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/OpenAL32/Include/alAuxEffectSlot.h b/OpenAL32/Include/alAuxEffectSlot.h index 7f670a95..85827746 100644 --- a/OpenAL32/Include/alAuxEffectSlot.h +++ b/OpenAL32/Include/alAuxEffectSlot.h @@ -79,6 +79,8 @@ struct ALeffectslotProps { ATOMIC(ALenum) Type; ALeffectProps Props; + /* Flag indicates if State should be updated. */ + ATOMIC(ALboolean) UpdateState; ATOMIC(ALeffectState*) State; ATOMIC(struct ALeffectslotProps*) next; @@ -139,7 +141,7 @@ inline struct ALeffectslot *RemoveEffectSlot(ALCcontext *context, ALuint id) ALenum InitEffectSlot(ALeffectslot *slot); void DeinitEffectSlot(ALeffectslot *slot); -void UpdateEffectSlotProps(ALeffectslot *slot); +void UpdateEffectSlotProps(ALeffectslot *slot, ALboolean withstate); ALvoid ReleaseALAuxiliaryEffectSlots(ALCcontext *Context); |