From: Alexis Hetu Date: Wed, 27 Sep 2017 14:31:28 +0000 (-0400) Subject: Linux build fix X-Git-Tag: android-x86-7.1-r3~373 X-Git-Url: http://git.osdn.net/view?a=commitdiff_plain;h=8beb240236859aaa146639a8f87d6bed66b55513;p=android-x86%2Fexternal-swiftshader.git Linux build fix The copy constructor of std::atomic is not allowed, so initialization through operator= is not allowed. Explicitly using the AtomicInt constructor to fix this issue. Change-Id: If77763e89e0d958d8a4b5a83d5d7bd9e3ba08ff6 Reviewed-on: https://swiftshader-review.googlesource.com/12508 Tested-by: Alexis Hétu Reviewed-by: Alexis Hétu --- diff --git a/src/Renderer/Renderer.cpp b/src/Renderer/Renderer.cpp index 3e7525309..1027ee0e3 100644 --- a/src/Renderer/Renderer.cpp +++ b/src/Renderer/Renderer.cpp @@ -63,8 +63,8 @@ namespace sw int batchSize = 128; int threadCount = 1; - AtomicInt Renderer::unitCount = 1; - AtomicInt Renderer::clusterCount = 1; + AtomicInt Renderer::unitCount(1); + AtomicInt Renderer::clusterCount(1); TranscendentalPrecision logPrecision = ACCURATE; TranscendentalPrecision expPrecision = ACCURATE;