aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/sksl
diff options
context:
space:
mode:
authorGravatar Brian Osman <brianosman@google.com>2018-02-21 12:00:14 -0500
committerGravatar Skia Commit-Bot <skia-commit-bot@chromium.org>2018-02-21 17:54:38 +0000
commitc35d7eab7b35d1acf65549720188d9ac77dde05a (patch)
tree48991ec9bf33a6aeaf523921c16f6532ebd266ac /src/sksl
parentf87651e7b8c54569ace96ce9bf1671d5401eb91c (diff)
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>
Diffstat (limited to 'src/sksl')
-rw-r--r--src/sksl/SkSLGLSLCodeGenerator.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/sksl/SkSLGLSLCodeGenerator.cpp b/src/sksl/SkSLGLSLCodeGenerator.cpp
index f94cc4ca0b..2fa7492b20 100644
--- a/src/sksl/SkSLGLSLCodeGenerator.cpp
+++ b/src/sksl/SkSLGLSLCodeGenerator.cpp
@@ -522,7 +522,9 @@ void GLSLCodeGenerator::writeFunctionCall(const FunctionCall& c) {
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 {