Commit 583c4d2a by Qiankun Miao Committed by Commit Bot

Invariant qualifier should not leak across shaders

Change-Id: I2a35899bffd28767b8bc638f415857636d4ad8ef Reviewed-on: https://chromium-review.googlesource.com/366720 Commit-Queue: Kenneth Russell <kbr@chromium.org> Reviewed-by: 's avatarKenneth Russell <kbr@chromium.org>
parent 4e94fea8
......@@ -207,6 +207,7 @@ TIntermNode *TCompiler::compileTreeImpl(const char *const shaderStrings[],
const int compileOptions)
{
clearResults();
symbolTable.clearInvariantVaryings();
ASSERT(numStrings > 0);
ASSERT(GetGlobalPoolAllocator());
......
......@@ -479,6 +479,12 @@ class TSymbolTable : angle::NonCopyable
{
mInvariantVaryings.insert(originalName);
}
void clearInvariantVaryings()
{
mInvariantVaryings.clear();
}
// If this returns false, the varying could still be invariant
// if it is set as invariant during the varying variable
// declaration - this piece of information is stored in the
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment