commit | a5e693afbf5213052f096a36ae7e0b1acc3e1922 | [log] [tgz] |
---|---|---|
author | Olli Etuaho <oetuaho@nvidia.com> | Thu Jul 13 16:07:26 2017 +0300 |
committer | Commit Bot <commit-bot@chromium.org> | Wed Jul 19 08:33:20 2017 +0000 |
tree | 36114ff004c418c68494852de8b71573f99f1f05 | |
parent | e5285d298fb6608372fc2e4ce4707fa978b89762 [diff] [blame] |
Make unique id counter a member of TSymbolTable This makes unique id counting thread-safe. BUG=angleproject:624 TEST=angle_unittests Change-Id: Ie0f2c7e574470b39750d37d2181c790bc874b275 Reviewed-on: https://chromium-review.googlesource.com/570419 Commit-Queue: Olli Etuaho <oetuaho@nvidia.com> Reviewed-by: Jamie Madill <jmadill@chromium.org>
diff --git a/src/compiler/translator/EmulatePrecision.cpp b/src/compiler/translator/EmulatePrecision.cpp index 9f56766..ba09fd7 100644 --- a/src/compiler/translator/EmulatePrecision.cpp +++ b/src/compiler/translator/EmulatePrecision.cpp
@@ -513,7 +513,7 @@ } // namespace anonymous -EmulatePrecision::EmulatePrecision(const TSymbolTable &symbolTable, int shaderVersion) +EmulatePrecision::EmulatePrecision(TSymbolTable *symbolTable, int shaderVersion) : TLValueTrackingTraverser(true, true, true, symbolTable, shaderVersion), mDeclaringVariables(false) {