Index: src/effects/GrCircleBlurFragmentProcessor.cpp |
diff --git a/src/effects/GrCircleBlurFragmentProcessor.cpp b/src/effects/GrCircleBlurFragmentProcessor.cpp |
index f319e3d90fc1863805b44be9d784c1b07a1b478c..39e3947049e039d54f8923ad74baa6de5ba04b10 100644 |
--- a/src/effects/GrCircleBlurFragmentProcessor.cpp |
+++ b/src/effects/GrCircleBlurFragmentProcessor.cpp |
@@ -209,9 +209,11 @@ static uint8_t* create_profile(float halfWH, float sigma) { |
compute_profile_offset_and_size(halfWH, sigma, &offset, &numSteps); |
uint8_t* weights = new uint8_t[numSteps]; |
- for (int i = 0; i < numSteps; ++i) { |
+ for (int i = 0; i < numSteps - 1; ++i) { |
weights[i] = eval_at(offset+i, halfWH, halfKernel.get(), kernelWH); |
} |
+ // Ensure the tail of the Gaussian goes to zero. |
+ weights[numSteps-1] = 0; |
return weights; |
} |