Commit c90d4d38 by Jamie Madill Committed by Commit Bot

Fix problematic query in TOutputGLSLBase::visitDeclaration.

There was an invalid derefernce that for some reason was not caught on the bots. Bug: angleproject:2456 No-Try: True Change-Id: I088e9671122fd25077027cb2eb577aa099fdcacf Reviewed-on: https://chromium-review.googlesource.com/1015287 Commit-Queue: Jamie Madill <jmadill@chromium.org> Reviewed-by: 's avatarLuc Ferron <lucferron@chromium.org>
parent c97e900c
...@@ -995,7 +995,8 @@ bool TOutputGLSLBase::visitDeclaration(Visit visit, TIntermDeclaration *node) ...@@ -995,7 +995,8 @@ bool TOutputGLSLBase::visitDeclaration(Visit visit, TIntermDeclaration *node)
const TIntermSequence &sequence = *(node->getSequence()); const TIntermSequence &sequence = *(node->getSequence());
TIntermTyped *variable = sequence.front()->getAsTyped(); TIntermTyped *variable = sequence.front()->getAsTyped();
writeLayoutQualifier(variable); writeLayoutQualifier(variable);
writeVariableType(variable->getType(), &variable->getAsSymbolNode()->variable()); TIntermSymbol *symbolNode = variable->getAsSymbolNode();
writeVariableType(variable->getType(), symbolNode ? &symbolNode->variable() : nullptr);
if (variable->getAsSymbolNode() == nullptr || if (variable->getAsSymbolNode() == nullptr ||
variable->getAsSymbolNode()->variable().symbolType() != SymbolType::Empty) variable->getAsSymbolNode()->variable().symbolType() != SymbolType::Empty)
{ {
......
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