Only output explicit extension directives in preprocessing.
Preprocessing output shouldn't contain extensions enabled as dependencies.
This commit is contained in:
parent
222457054e
commit
1d2996db68
6 changed files with 11 additions and 5 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue