commit | c35d7eab7b35d1acf65549720188d9ac77dde05a | [log] [tgz] |
---|---|---|
author | Brian Osman <brianosman@google.com> | Wed Feb 21 12:00:14 2018 -0500 |
committer | Skia Commit-Bot <skia-commit-bot@chromium.org> | Wed Feb 21 17:54:38 2018 +0000 |
tree | 48991ec9bf33a6aeaf523921c16f6532ebd266ac | |
parent | f87651e7b8c54569ace96ce9bf1671d5401eb91c [diff] [blame] |
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 {