Link-check fix: Don't include built-in variables in the fragment output ES rule:
"No layout(location=) is required if there is only one output" should not count built-in variables like gl_SampleMask. This is fixed.
This commit is contained in:
parent
78258d3d40
commit
ba01ebd5ba
2 changed files with 3 additions and 3 deletions
|
|
@ -548,7 +548,7 @@ void TIntermediate::inOutLocationCheck(TInfoSink& infoSink)
|
|||
const TType& type = linkObjects[i]->getAsTyped()->getType();
|
||||
const TQualifier& qualifier = type.getQualifier();
|
||||
if (language == EShLangFragment) {
|
||||
if (qualifier.storage == EvqVaryingOut) {
|
||||
if (qualifier.storage == EvqVaryingOut && qualifier.builtIn == EbvNone) {
|
||||
++numFragOut;
|
||||
if (!qualifier.hasAnyLocation())
|
||||
fragOutWithNoLocation = true;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue