HLSL: Add implicit-this tracking to TFunction.

This commit is contained in:
John Kessenich
2017-03-19 13:10:28 -06:00
parent f3d88bd498
commit dfbdd9eb20
4 changed files with 25 additions and 6 deletions

View File

@@ -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;