aboutsummaryrefslogtreecommitdiffstats
path: root/Alc/ALc.c
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2017-03-20 21:25:39 -0700
committerChris Robinson <[email protected]>2017-03-20 21:25:39 -0700
commitcdfe0d8f5af871258f1f58493e9659148659cacb (patch)
tree61412add20d91a243c18d3c8e18213adfe18806e /Alc/ALc.c
parent42bcf0870d7f7358b4e1775d37e20e3b9162d249 (diff)
Use an atomic flag to test if a source needs to update
Diffstat (limited to 'Alc/ALc.c')
-rw-r--r--Alc/ALc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Alc/ALc.c b/Alc/ALc.c
index f275871e..f830a602 100644
--- a/Alc/ALc.c
+++ b/Alc/ALc.c
@@ -2254,7 +2254,7 @@ static ALCenum UpdateDeviceParams(ALCdevice *device, const ALCint *attrList)
}
}
- source->NeedsUpdate = AL_TRUE;
+ ATOMIC_FLAG_CLEAR(&source->PropsClean, almemory_order_release);
/* Clear any pre-existing source property structs, in case the
* number of auxiliary sends changed. Playing (or paused) sources