diff options
author | Chris Robinson <[email protected]> | 2017-03-10 04:59:22 -0800 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2017-03-10 04:59:22 -0800 |
commit | b878769ee0ea36fc5f0b855edc9017166570186f (patch) | |
tree | d1e42c0540c1becfaaed2554da1f29c094550717 /Alc/ALc.c | |
parent | 583d431947be540a33843d68feb5f1456671c298 (diff) |
Fix building without C11
Diffstat (limited to 'Alc/ALc.c')
-rw-r--r-- | Alc/ALc.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -2313,7 +2313,8 @@ static ALCenum UpdateDeviceParams(ALCdevice *device, const ALCint *attrList) for(pos = 0;pos < context->VoiceCount;pos++) { ALvoice *voice = context->Voices[pos]; - if(!voice->Source) continue; + if(ATOMIC_LOAD(&voice->Source, almemory_order_acquire) == NULL) + continue; if(device->AvgSpeakerDist > 0.0f) { |