GLSL: Promote HLSL entry-point renaming code to be used by GLSL as well.
Fixes #1045.
This commit is contained in:
parent
4f4683d251
commit
9855bdad00
16 changed files with 1066 additions and 957 deletions
|
|
@ -860,6 +860,11 @@ function_header
|
|||
// Add the function as a prototype after parsing it (we do not support recursion)
|
||||
TFunction *function;
|
||||
TType type($1);
|
||||
|
||||
// Potentially rename shader entry point function. No-op most of the time.
|
||||
parseContext.renameShaderFunction($2.string);
|
||||
|
||||
// Make the function
|
||||
function = new TFunction($2.string, type);
|
||||
$$ = function;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue