Merge pull request #31 from google/explicit-extension-directive

Only output explicit extension directives in preprocessing.
This commit is contained in:
John Kessenich 2015-07-22 15:20:54 -06:00
commit 96d8042a64
6 changed files with 11 additions and 5 deletions

View file

@ -5352,4 +5352,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