Implement operator-based implicit type conversions.
git-svn-id: https://cvs.khronos.org/svn/repos/ogl/trunk/ecosystem/public/sdk/tools/glslang@20724 e7fa87d3-cd2b-0410-9028-fcbf551c1848
This commit is contained in:
parent
ef8ae2e345
commit
4b67103b02
6 changed files with 182 additions and 44 deletions
|
|
@ -1073,9 +1073,6 @@ conditional_expression
|
|||
parseContext.recover();
|
||||
|
||||
$$ = parseContext.intermediate.addSelection($1, $3, $5, $2.line);
|
||||
if ($3->getType() != $5->getType())
|
||||
$$ = 0;
|
||||
|
||||
if ($$ == 0) {
|
||||
parseContext.binaryOpError($2.line, ":", $3->getCompleteString(), $5->getCompleteString());
|
||||
parseContext.recover();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue