Only output explicit extension directives in preprocessing.

Preprocessing output shouldn't contain extensions enabled as
dependencies.
This commit is contained in:
Lei Zhang 2015-07-16 18:34:55 -04:00
parent 222457054e
commit 1d2996db68
6 changed files with 11 additions and 5 deletions

View file

@ -5333,4 +5333,11 @@ void TParseContext::notifyLineDirective(int curLineNo, int newLineNo, bool hasSo
}
}
void TParseContext::notifyExtensionDirective(int line, const char* extension, const char* behavior)
{
if (extensionCallback) {
extensionCallback(line, extension, behavior);
}
}
} // end namespace glslang