Don't print the "Linked stage" message unless the AST is being dumped.

This commit is contained in:
John Kessenich 2016-12-03 13:58:46 -07:00
parent 09512cbd5c
commit fb06e9552e
161 changed files with 3 additions and 636 deletions

View file

@ -1687,7 +1687,8 @@ bool TProgram::linkStage(EShLanguage stage, EShMessages messages)
newedIntermediate[stage] = true;
}
infoSink->info << "\nLinked " << StageName(stage) << " stage:\n\n";
if (messages & EShMsgAST)
infoSink->info << "\nLinked " << StageName(stage) << " stage:\n\n";
if (stages[stage].size() > 1) {
std::list<TShader*>::const_iterator it;