diff --git a/src/compiler/OutputHLSL.cpp b/src/compiler/OutputHLSL.cpp index a36a8561d..67309f5c2 100644 --- a/src/compiler/OutputHLSL.cpp +++ b/src/compiler/OutputHLSL.cpp @@ -1082,7 +1082,7 @@ bool OutputHLSL::visitAggregate(Visit visit, TIntermAggregate *node) { if (!variable->getAsSymbolNode() || variable->getAsSymbolNode()->getSymbol() != "") // Variable declaration { - if (variable->getQualifier() == EvqGlobal) + if (!mInsideFunction) { out << "static "; }