Implement GL_OES_EGL_image_external support.

BUG=14610416

Change-Id: I9ca6d1779c7b6f1b28d5d5665264815881ee01b5
Reviewed-on: https://swiftshader-review.googlesource.com/1071
Reviewed-by: Nicolas Capens <nicolascapens@google.com>
diff --git a/src/GLES2/compiler/OutputASM.cpp b/src/GLES2/compiler/OutputASM.cpp
index 995eb16..90e634d 100644
--- a/src/GLES2/compiler/OutputASM.cpp
+++ b/src/GLES2/compiler/OutputASM.cpp
@@ -18,6 +18,7 @@
 

 #define GL_APICALL

 #include <GLES2/gl2.h>

+#include <GLES2/gl2ext.h>

 

 namespace sh

 {

@@ -2280,6 +2281,10 @@
 		{

 			return GL_SAMPLER_CUBE;

 		}

+        else if(type.getBasicType() == EbtSamplerExternalOES)

+        {

+            return GL_SAMPLER_EXTERNAL_OES;

+        }

 		else UNREACHABLE();

 

 		return GL_NONE;