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