diff options
author | Zhenyao Mo <zmo@chromium.org> | 2014-10-27 16:09:57 -0700 |
---|---|---|
committer | Zhenyao Mo <zmo@chromium.org> | 2014-10-28 20:22:35 +0000 |
commit | 2a517272f07df229fb5f016ae81046f4fd9c9400 (patch) | |
tree | fb23e955e91216515539a81221f11dec4e94e83c | |
parent | fe14d455c240b756a66ea2cb20ad3e22f9a12cec (diff) | |
download | angle-2a517272f07df229fb5f016ae81046f4fd9c9400.tar.gz |
Fix an issue with separate invariant statement.
Basically we end up with an extra "invariant xxx ;;" on GL backend.
This is not handled correctly by Mac drivers and also out shader translator.
BUG=angle:776
TEST=webgl conformance on mac/windows
Change-Id: If32867efba64ab0d3e6e690155790b90d736439f
Reviewed-on: https://chromium-review.googlesource.com/225780
Tested-by: Zhenyao Mo <zmo@chromium.org>
Reviewed-by: Jamie Madill <jmadill@chromium.org>
-rw-r--r-- | src/compiler/translator/OutputGLSLBase.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/compiler/translator/OutputGLSLBase.cpp b/src/compiler/translator/OutputGLSLBase.cpp index a295aeef..772ed03c 100644 --- a/src/compiler/translator/OutputGLSLBase.cpp +++ b/src/compiler/translator/OutputGLSLBase.cpp @@ -658,7 +658,7 @@ bool TOutputGLSLBase::visitAggregate(Visit visit, TIntermAggregate *node) ASSERT(sequence && sequence->size() == 1); const TIntermSymbol *symbol = sequence->front()->getAsSymbolNode(); ASSERT(symbol); - out << "invariant " << hashVariableName(symbol->getSymbol()) << ";"; + out << "invariant " << hashVariableName(symbol->getSymbol()); } visitChildren = false; break; |