diff options
author | Minmin Gong <[email protected]> | 2019-02-04 19:59:19 -0800 |
---|---|---|
committer | Minmin Gong <[email protected]> | 2019-02-04 20:03:18 -0800 |
commit | 41b9d473a2753fea2deeb1f1f8f241fd53270c3d (patch) | |
tree | 5e4905e795ae0d566e0f64b0cc368d7422652e87 /Alc/alcontext.h | |
parent | c25433986ae52e65fc5549c487be6d074d9b0bb9 (diff) |
Fix compiling problems on VS2019 with vc142 toolset
Msvc142 in VS2019 preview 2 doesn't allow std::atomic_flag to be initialized by a bool. Call test_and_set in the constructors instead.
Diffstat (limited to 'Alc/alcontext.h')
-rw-r--r-- | Alc/alcontext.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Alc/alcontext.h b/Alc/alcontext.h index 472d06ae..213949f2 100644 --- a/Alc/alcontext.h +++ b/Alc/alcontext.h @@ -80,7 +80,7 @@ struct ALCcontext { ALfloat SpeedOfSound{}; ALfloat MetersPerUnit{1.0f}; - std::atomic_flag PropsClean{true}; + std::atomic_flag PropsClean; std::atomic<bool> DeferUpdates{false}; std::mutex PropLock; |