From d2cf25db0b560b2f55ce5674d431f0b51788304c Mon Sep 17 00:00:00 2001 From: "daniel@transgaming.com" Date: Thu, 22 Apr 2010 16:27:35 +0000 Subject: [PATCH] Make all globals static TRAC #12015 Signed-off-by: Andrew Lewycky Signed-off-by: Daniel Koch Author: Nicolas Capens git-svn-id: https://angleproject.googlecode.com/svn/trunk@183 736b8ea6-26fd-11df-bfd4-992fa37f6226 --- src/compiler/OutputHLSL.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 "; }