Skip to content

Commit 18a3574

Browse files
authored
Update ParseContext.cpp
1 parent 2413ce0 commit 18a3574

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

src/compiler/translator/ParseContext.cpp

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3581,14 +3581,16 @@ bool TParseContext::executeInitializer(const TSourceLoc &line,
35813581
}
35823582

35833583
// identifier must be of type constant, a global, or a temporary
3584-
if ((qualifier != EvqTemporary) && (qualifier != EvqGlobal) && (qualifier != EvqConst) && !(std::getenv("ANGLE_APLABEDIT")))
3584+
if ((qualifier != EvqTemporary) && (qualifier != EvqGlobal) && (qualifier != EvqConst))
35853585
{
3586+
if (!(std::getenv("ANGLE_APLABEDIT"))) {
35863587
error(line, " cannot initialize this type of qualifier ",
35873588
variable->getType().getQualifierString());
35883589
return false;
3589-
} else {
3590+
} else {
35903591
warning(line, " cannot initialize this type of qualifier ",
35913592
variable->getType().getQualifierString());
3593+
}
35923594
}
35933595

35943596
TIntermSymbol *intermSymbol = new TIntermSymbol(variable);

0 commit comments

Comments
 (0)