From 41b9d473a2753fea2deeb1f1f8f241fd53270c3d Mon Sep 17 00:00:00 2001 From: Minmin Gong Date: Mon, 4 Feb 2019 19:59:19 -0800 Subject: 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. --- OpenAL32/alSource.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'OpenAL32/alSource.cpp') diff --git a/OpenAL32/alSource.cpp b/OpenAL32/alSource.cpp index 6988decf..cc384478 100644 --- a/OpenAL32/alSource.cpp +++ b/OpenAL32/alSource.cpp @@ -3353,6 +3353,8 @@ ALsource::ALsource(ALsizei num_sends) queue = nullptr; VoiceIdx = -1; + + PropsClean.test_and_set(); } ALsource::~ALsource() -- cgit v1.2.3