diff options
Diffstat (limited to 'src/opts/SkRasterPipeline_opts.h')
-rw-r--r-- | src/opts/SkRasterPipeline_opts.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/opts/SkRasterPipeline_opts.h b/src/opts/SkRasterPipeline_opts.h index d7f05a92d9..962ef1568f 100644 --- a/src/opts/SkRasterPipeline_opts.h +++ b/src/opts/SkRasterPipeline_opts.h @@ -349,7 +349,7 @@ STAGE(to_2dot2) { x64 = x32.rsqrt(); // x^(+1/64) // 29 = 32 - 2 - 1 - return x2.invert() * x32 * x64.invert(); + return SkNf::Max(x2.invert() * x32 * x64.invert(), 0.0f); // Watch out for NaN. }; r = to_2dot2(r); |