Commit 251344f6 by Sahil Parmar

Call checkShaderStageForNVExtensions() from function updateExtensionBehavior()

parent 3ae0f583
......@@ -742,6 +742,11 @@ void TParseVersions::updateExtensionBehavior(int line, const char* extension, co
return;
}
#ifdef NV_EXTENSIONS
if (!checkShaderStageForNVExtensions(getCurrentLoc(), extension))
return;
#endif
// update the requested extension
updateExtensionBehavior(extension, behavior);
......
......@@ -874,11 +874,6 @@ int TPpContext::CPPextension(TPpToken* ppToken)
return token;
}
#ifdef NV_EXTENSIONS
if (!parseContext.checkShaderStageForNVExtensions(ppToken->loc, extensionName))
return token;
#endif
parseContext.updateExtensionBehavior(line, extensionName, ppToken->name);
parseContext.notifyExtensionDirective(line, extensionName, ppToken->name);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment