Split out the unary-argument built-in function path from the addUnaryMath() path, allowing the return types to be treated correctly without any special casing. Also, implement the correct precision qualifier propagation rules for built-in functions mapped to operators.
git-svn-id: https://cvs.khronos.org/svn/repos/ogl/trunk/ecosystem/public/sdk/tools/glslang@21062 e7fa87d3-cd2b-0410-9028-fcbf551c1848
This commit is contained in:
parent
ebeeece6a7
commit
4ba94413d3
5 changed files with 103 additions and 94 deletions
|
|
@ -1329,7 +1329,7 @@ TIntermTyped* TParseContext::constructBuiltIn(const TType& type, TOperator op, T
|
|||
|
||||
return 0;
|
||||
}
|
||||
newNode = intermediate.addUnaryMath(basicOp, node, node->getLine(), symbolTable);
|
||||
newNode = intermediate.addUnaryMath(basicOp, node, node->getLine());
|
||||
if (newNode == 0) {
|
||||
error(line, "can't convert", "constructor", "");
|
||||
return 0;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue