Don't use LOD bias on OES external textures

Change-Id: Id366b644576c6e4763c0c081b6a6b40f4e930df7
Reviewed-on: https://skia-review.googlesource.com/109024
Reviewed-by: Brian Salomon <bsalomon@google.com>
Commit-Queue: Brian Osman <brianosman@google.com>
diff --git a/src/sksl/SkSLGLSLCodeGenerator.cpp b/src/sksl/SkSLGLSLCodeGenerator.cpp
index f94cc4c..2fa7492 100644
--- a/src/sksl/SkSLGLSLCodeGenerator.cpp
+++ b/src/sksl/SkSLGLSLCodeGenerator.cpp
@@ -522,7 +522,9 @@
                 break;
             case SpvDim2D:
                 dim = "2D";
-                isTextureFunctionWithBias = true;
+                if (c.fArguments[0]->fType != *fContext.fSamplerExternalOES_Type) {
+                    isTextureFunctionWithBias = true;
+                }
                 if (c.fArguments[1]->fType == *fContext.fFloat2_Type) {
                     proj = false;
                 } else {