From d610c751569affd952034377648eb22c0b7d58c5 Mon Sep 17 00:00:00 2001 From: Brian Salomon Date: Thu, 18 Jun 2020 14:41:53 -0400 Subject: [PATCH] Fix a unintended shader change in GrTextureEffect nearest + repeat doesn't need to operate in unnorm coords. Restores behavior previos to: https://skia-review.googlesource.com/c/skia/+/297189y Change-Id: Id78fb1a1526e0703ed17a3c46082209447cac2dd Reviewed-on: https://skia-review.googlesource.com/c/skia/+/297464 Auto-Submit: Brian Salomon Commit-Queue: Michael Ludwig Reviewed-by: Michael Ludwig --- src/gpu/effects/GrTextureEffect.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gpu/effects/GrTextureEffect.cpp b/src/gpu/effects/GrTextureEffect.cpp index 554fd1d662..0f1b0fb5ea 100644 --- a/src/gpu/effects/GrTextureEffect.cpp +++ b/src/gpu/effects/GrTextureEffect.cpp @@ -406,7 +406,7 @@ GrGLSLFragmentProcessor* GrTextureEffect::onCreateGLSLInstance() const { switch (m) { case ShaderMode::kNone: return false; case ShaderMode::kClamp: return false; - case ShaderMode::kRepeatNearest: return true; + case ShaderMode::kRepeatNearest: return false; case ShaderMode::kRepeatBilerp: return true; case ShaderMode::kRepeatMipMap: return true; case ShaderMode::kMirrorRepeat: return false;