HLSL: Correctly identify which variables are global storage class.
This commit is contained in:
@@ -134,6 +134,8 @@ bool HlslGrammar::acceptDeclaration(TIntermNode*& node)
|
||||
TType type;
|
||||
if (! acceptFullySpecifiedType(type))
|
||||
return false;
|
||||
if (type.getQualifier().storage == EvqTemporary && parseContext.symbolTable.atGlobalLevel())
|
||||
type.getQualifier().storage = EvqGlobal;
|
||||
|
||||
// identifier
|
||||
HlslToken idToken;
|
||||
|
||||
Reference in New Issue
Block a user