From ae22d742dc665fb5a75a24c9af24945a5722d8ff Mon Sep 17 00:00:00 2001 From: Chris Robinson Date: Thu, 9 Mar 2017 07:15:06 -0800 Subject: [PATCH] Remove an unnecessary variable --- Alc/ALc.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Alc/ALc.c b/Alc/ALc.c index 42e1cea0..882a8cb0 100644 --- a/Alc/ALc.c +++ b/Alc/ALc.c @@ -1704,13 +1704,12 @@ void ALCcontext_ProcessUpdates(ALCcontext *context) if(ATOMIC_EXCHANGE_SEQ(ALenum, &context->DeferUpdates, AL_FALSE)) { ALsizei pos; - uint updates; /* Tell the mixer to stop applying updates, then wait for any active * updating to finish, before providing updates. */ ATOMIC_STORE_SEQ(&context->HoldUpdates, AL_TRUE); - while(((updates=ReadRef(&context->UpdateCount))&1) != 0) + while((ATOMIC_LOAD(&context->UpdateCount, almemory_order_acquire)&1) != 0) althrd_yield(); UpdateListenerProps(context);