commit | 0c6ea6c77ad39042759d781e65e3474ebc4ff7ee | [log] [tgz] |
---|---|---|
author | Mike Reed <reed@google.com> | Tue Feb 13 11:57:19 2018 -0500 |
committer | Skia Commit-Bot <skia-commit-bot@chromium.org> | Tue Feb 13 17:48:20 2018 +0000 |
tree | 68c1864729d878781705c208c22bc23591958000 | |
parent | 559823d1fee3a9e26170d0ac1f3aaa87b3a3c66a [diff] |
doh -- reverse check for finite Bug: skia: Change-Id: I7ea6e9bdf5c979dbbc61587edad5f799e9626639 Reviewed-on: https://skia-review.googlesource.com/106967 Reviewed-by: Stan Iliev <stani@google.com> Commit-Queue: Mike Reed <reed@google.com>
diff --git a/src/effects/SkEmbossMaskFilter.cpp b/src/effects/SkEmbossMaskFilter.cpp index 9f4a54a8b..6710250 100644 --- a/src/effects/SkEmbossMaskFilter.cpp +++ b/src/effects/SkEmbossMaskFilter.cpp
@@ -30,7 +30,7 @@ Light newLight = light; normalize3(newLight.fDirection, light.fDirection); - if (SkScalarsAreFinite(newLight.fDirection, 3)) { + if (!SkScalarsAreFinite(newLight.fDirection, 3)) { return nullptr; }