diff options
author | Chris Robinson <[email protected]> | 2018-11-13 20:26:32 -0800 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2018-11-13 20:26:32 -0800 |
commit | a5f68c21214e6f85ade835cd29045026797ac2a4 (patch) | |
tree | 3b995975906303cfc42b8dc3054f3bbed632dbbb /OpenAL32/alState.c | |
parent | 5867c7b8c213aa47659e7c6e6cafddc643d9ea76 (diff) |
Avoid using ATOMIC_FLAG
Although it cant potentially be better than a regular atomic, it presents
compatibility issues when non-C11 atomics are mixed with C++
Diffstat (limited to 'OpenAL32/alState.c')
-rw-r--r-- | OpenAL32/alState.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/OpenAL32/alState.c b/OpenAL32/alState.c index ce93e143..8be08435 100644 --- a/OpenAL32/alState.c +++ b/OpenAL32/alState.c @@ -68,7 +68,7 @@ AL_API const ALchar* AL_APIENTRY alsoft_get_version(void) if(!ATOMIC_LOAD(&context->DeferUpdates, almemory_order_acquire)) \ UpdateContextProps(context); \ else \ - ATOMIC_FLAG_CLEAR(&context->PropsClean, almemory_order_release); \ + ATOMIC_STORE(&context->PropsClean, AL_FALSE, almemory_order_release); \ } while(0) |