diff options
author | Brian Salomon <bsalomon@google.com> | 2017-08-31 09:06:14 -0400 |
---|---|---|
committer | Skia Commit-Bot <skia-commit-bot@chromium.org> | 2017-08-31 13:54:01 +0000 |
commit | 977b54c40ce28396a913bea572ef704aacaf5bc3 (patch) | |
tree | b8e8b7eb5d980dd3e2faad87d920d400d5902b99 /src/gpu/ops | |
parent | 9d2de4a05fa7e978d16dd6e35a12d432ee845c3c (diff) |
Use high precision for TextureOp texture coord varying
Change-Id: Iadcae79f7b295a3bedd33b4a93734547665f2a5d
Reviewed-on: https://skia-review.googlesource.com/41380
Reviewed-by: Brian Osman <brianosman@google.com>
Commit-Queue: Brian Salomon <bsalomon@google.com>
Diffstat (limited to 'src/gpu/ops')
-rw-r--r-- | src/gpu/ops/GrTextureOp.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gpu/ops/GrTextureOp.cpp b/src/gpu/ops/GrTextureOp.cpp index 686852b698..e16472a5ff 100644 --- a/src/gpu/ops/GrTextureOp.cpp +++ b/src/gpu/ops/GrTextureOp.cpp @@ -82,8 +82,8 @@ public: args.fOutputColor); } args.fFragBuilder->codeAppend("highp float2 texCoord;"); - args.fVaryingHandler->addPassThroughAttribute(&textureGP.fTextureCoords, - "texCoord"); + args.fVaryingHandler->addPassThroughAttribute(&textureGP.fTextureCoords, "texCoord", + kHigh_GrSLPrecision); args.fFragBuilder->codeAppendf("%s = ", args.fOutputColor); args.fFragBuilder->appendTextureLookupAndModulate(args.fOutputColor, args.fTexSamplers[0], |