aboutsummaryrefslogtreecommitdiffstats
path: root/OpenAL32/alAuxEffectSlot.c
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2014-07-21 23:14:48 -0700
committerChris Robinson <[email protected]>2014-07-22 00:20:28 -0700
commit5a339a2a5b12545c105a2a3dcfb1d8e466b0381f (patch)
tree95dab694ebe14d41e3e775dc651d07ee26cbe44a /OpenAL32/alAuxEffectSlot.c
parent7b41ed7ec4bfb7e8ac3daef3eebc6831b96a8fa4 (diff)
Add macros for generic atomic functionality
Diffstat (limited to 'OpenAL32/alAuxEffectSlot.c')
-rw-r--r--OpenAL32/alAuxEffectSlot.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/OpenAL32/alAuxEffectSlot.c b/OpenAL32/alAuxEffectSlot.c
index 08fa5a86..0eb79aec 100644
--- a/OpenAL32/alAuxEffectSlot.c
+++ b/OpenAL32/alAuxEffectSlot.c
@@ -183,7 +183,7 @@ AL_API ALvoid AL_APIENTRY alAuxiliaryEffectSloti(ALuint effectslot, ALenum param
err = InitializeEffect(device, slot, effect);
if(err != AL_NO_ERROR)
SET_ERROR_AND_GOTO(context, err, done);
- context->UpdateSources = AL_TRUE;
+ ATOMIC_STORE(context->UpdateSources, AL_TRUE);
break;
case AL_EFFECTSLOT_AUXILIARY_SEND_AUTO:
@@ -191,7 +191,7 @@ AL_API ALvoid AL_APIENTRY alAuxiliaryEffectSloti(ALuint effectslot, ALenum param
SET_ERROR_AND_GOTO(context, AL_INVALID_VALUE, done);
slot->AuxSendAuto = value;
- context->UpdateSources = AL_TRUE;
+ ATOMIC_STORE(context->UpdateSources, AL_TRUE);
break;
default: