HLSL: Add implicit-this tracking to TFunction.
This commit is contained in:
parent
f3d88bd498
commit
dfbdd9eb20
4 changed files with 25 additions and 6 deletions
|
|
@ -2794,8 +2794,10 @@ bool HlslGrammar::acceptFunctionCall(HlslToken callToken, TIntermTyped*& node, T
|
|||
|
||||
// arguments
|
||||
TIntermTyped* arguments = nullptr;
|
||||
if (baseObject != nullptr)
|
||||
if (baseObject != nullptr) {
|
||||
// Non-static member functions have an implicit first argument of the base object.
|
||||
parseContext.handleFunctionArgument(function, arguments, baseObject);
|
||||
}
|
||||
if (! acceptArguments(function, arguments))
|
||||
return false;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue