commit | be954a23874e48d993383ae4a3d068c6da6d757c | [log] [tgz] |
---|---|---|
author | Gregoire Payen de La Garanderie <Gregory.Payen@imgtec.com> | Tue Dec 23 00:05:28 2014 +0000 |
committer | Jamie Madill <jmadill@chromium.org> | Tue Dec 23 20:15:36 2014 +0000 |
tree | 096bd6668930b620d1d96f199d3a4356469d1642 | |
parent | be12fa2238d2e3e57b84fe25517e2cd7c62054b5 [diff] [blame] |
Implement support for the binary operator '%' in the translator. BUG=angle:854 Change-Id: If116de132dc83d93255749b54c1919a75abcb65c Reviewed-on: https://chromium-review.googlesource.com/236330 Tested-by: Gregoire Payen de La Garanderie <Gregory.Payen@imgtec.com> Reviewed-by: Jamie Madill <jmadill@chromium.org>
diff --git a/src/compiler/translator/Intermediate.cpp b/src/compiler/translator/Intermediate.cpp index 47b3b05..243a9ca 100644 --- a/src/compiler/translator/Intermediate.cpp +++ b/src/compiler/translator/Intermediate.cpp
@@ -76,7 +76,16 @@ case EOpDiv: case EOpMul: if (left->getBasicType() == EbtStruct || left->getBasicType() == EbtBool) + { return NULL; + } + break; + case EOpMod: + if (left->getBasicType() == EbtStruct || left->getBasicType() == EbtBool || left->getBasicType() == EbtFloat) + { + return NULL; + } + break; default: break; }