glslang front-end: Support relaxed error checking for bug 13724 "...initializer must be a constant expression..." because that change breaks existing shipping applications. (Normal validation for portability testing still gives an error.)
git-svn-id: https://cvs.khronos.org/svn/repos/ogl/trunk/ecosystem/public/sdk/tools/glslang@31475 e7fa87d3-cd2b-0410-9028-fcbf551c1848
This commit is contained in:
parent
fae38ee277
commit
4751ce3fc1
@ -4160,7 +4160,10 @@ TIntermNode* TParseContext::executeInitializer(TSourceLoc loc, TIntermTyped* ini
|
||||
// qualifier any initializer must be a constant expression."
|
||||
if (symbolTable.atGlobalLevel() && initializer->getType().getQualifier().storage != EvqConst) {
|
||||
const char* initFeature = "non-constant global initializer";
|
||||
requireProfile(loc, ~EEsProfile, initFeature);
|
||||
if (messages & EShMsgRelaxedErrors)
|
||||
warn(loc, "not allowed in this version", initFeature, "");
|
||||
else
|
||||
requireProfile(loc, ~EEsProfile, initFeature);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user