зеркало из https://github.com/AvaloniaUI/angle.git
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
This commit is contained in:
Родитель
1b3a8155c2
Коммит
d2cf25db0b
|
@ -1082,7 +1082,7 @@ bool OutputHLSL::visitAggregate(Visit visit, TIntermAggregate *node)
|
||||||
{
|
{
|
||||||
if (!variable->getAsSymbolNode() || variable->getAsSymbolNode()->getSymbol() != "") // Variable declaration
|
if (!variable->getAsSymbolNode() || variable->getAsSymbolNode()->getSymbol() != "") // Variable declaration
|
||||||
{
|
{
|
||||||
if (variable->getQualifier() == EvqGlobal)
|
if (!mInsideFunction)
|
||||||
{
|
{
|
||||||
out << "static ";
|
out << "static ";
|
||||||
}
|
}
|
||||||
|
|
Загрузка…
Ссылка в новой задаче