commit | 7d649a00979a248d273f362dbf6b8ac5df712dca | [log] [tgz] |
---|---|---|
author | Nicolas Capens <nicolascapens@chromium.org> | Fri Feb 07 11:24:32 2014 -0500 |
committer | Nicolas Capens <nicolascapens@chromium.org> | Fri Feb 07 16:36:55 2014 +0000 |
tree | 68e91f81a087e0c4698c346caadf58c0c940e689 | |
parent | 95ffb8683f3bf1874f0b4c41491633098ee08ab7 [diff] [blame] |
Fix initializing the MaxExpressionComplexity and MaxCallStackDepth compiler limits. BUG=339860 Change-Id: I64600db4bef62236c6acd8728902471df06a8f0a Reviewed-on: https://chromium-review.googlesource.com/185380 Tested-by: Nicolas Capens <nicolascapens@chromium.org> Reviewed-by: Shannon Woods <shannonwoods@chromium.org>
diff --git a/src/compiler/translator/ShaderLang.cpp b/src/compiler/translator/ShaderLang.cpp index 907e388..7e19f4e 100644 --- a/src/compiler/translator/ShaderLang.cpp +++ b/src/compiler/translator/ShaderLang.cpp
@@ -97,6 +97,9 @@ resources->HashFunction = NULL; resources->ArrayIndexClampingStrategy = SH_CLAMP_WITH_CLAMP_INTRINSIC; + + resources->MaxExpressionComplexity = 256; + resources->MaxCallStackDepth = 256; } //