| Index: src/gpu/effects/GrRRectEffect.cpp
|
| diff --git a/src/gpu/effects/GrRRectEffect.cpp b/src/gpu/effects/GrRRectEffect.cpp
|
| index c0133570645103efafae7ef389e8c456eacf85f3..bc790574781013c9ee307fa38dc484dea96b954a 100644
|
| --- a/src/gpu/effects/GrRRectEffect.cpp
|
| +++ b/src/gpu/effects/GrRRectEffect.cpp
|
| @@ -572,9 +572,8 @@ void GLEllipticalRRectEffect::emitCode(GrGLShaderBuilder* builder,
|
| builder->fsCodeAppend("\t\tfloat implicit = dot(Z, dxy) - 1.0;\n");
|
| // grad_dot is the squared length of the gradient of the implicit.
|
| builder->fsCodeAppendf("\t\tfloat grad_dot = 4.0 * dot(Z, Z);\n");
|
| - if (builder->ctxInfo().caps()->dropsTileOnZeroDivide()) {
|
| - builder->fsCodeAppend("\t\tgrad_dot = max(grad_dot, 1.0e-4);\n");
|
| - }
|
| + // avoid calling inversesqrt on zero.
|
| + builder->fsCodeAppend("\t\tgrad_dot = max(grad_dot, 1.0e-4);\n");
|
| builder->fsCodeAppendf("\t\tfloat approx_dist = implicit * inversesqrt(grad_dot);\n");
|
|
|
| if (kFillAA_GrEffectEdgeType == erre.getEdgeType()) {
|
|
|