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 <bsalomon@google.com> Commit-Queue: Michael Ludwig <michaelludwig@google.com> Reviewed-by: Michael Ludwig <michaelludwig@google.com>
This commit is contained in:
parent
5ed3c11a80
commit
d610c75156
@ -406,7 +406,7 @@ GrGLSLFragmentProcessor* GrTextureEffect::onCreateGLSLInstance() const {
|
|||||||
switch (m) {
|
switch (m) {
|
||||||
case ShaderMode::kNone: return false;
|
case ShaderMode::kNone: return false;
|
||||||
case ShaderMode::kClamp: return false;
|
case ShaderMode::kClamp: return false;
|
||||||
case ShaderMode::kRepeatNearest: return true;
|
case ShaderMode::kRepeatNearest: return false;
|
||||||
case ShaderMode::kRepeatBilerp: return true;
|
case ShaderMode::kRepeatBilerp: return true;
|
||||||
case ShaderMode::kRepeatMipMap: return true;
|
case ShaderMode::kRepeatMipMap: return true;
|
||||||
case ShaderMode::kMirrorRepeat: return false;
|
case ShaderMode::kMirrorRepeat: return false;
|
||||||
|
Loading…
Reference in New Issue
Block a user