From b878769ee0ea36fc5f0b855edc9017166570186f Mon Sep 17 00:00:00 2001 From: Chris Robinson Date: Fri, 10 Mar 2017 04:59:22 -0800 Subject: Fix building without C11 --- Alc/ALc.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'Alc') diff --git a/Alc/ALc.c b/Alc/ALc.c index beec0c32..da56fa65 100644 --- a/Alc/ALc.c +++ b/Alc/ALc.c @@ -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) { -- cgit v1.2.3