diff options
author | Robert Phillips <robertphillips@google.com> | 2017-08-01 16:13:04 -0400 |
---|---|---|
committer | Skia Commit-Bot <skia-commit-bot@chromium.org> | 2017-08-01 20:46:28 +0000 |
commit | 369e8b70eedfd151c7f88e50d7f430f4cda5d57e (patch) | |
tree | 3e77b9ce2c1f4b604bfa42d211f158140e242d2e /src/gpu/effects/GrGaussianConvolutionFragmentProcessor.cpp | |
parent | 0e9605542444a7653359f4fc610f7620df9f6313 (diff) |
Fix cleanup on program creation failure
Change-Id: Ibc9b96537f774a3b8a43848b8b626f3f036b07b3
Reviewed-on: https://skia-review.googlesource.com/29561
Commit-Queue: Robert Phillips <robertphillips@google.com>
Reviewed-by: Brian Salomon <bsalomon@google.com>
Diffstat (limited to 'src/gpu/effects/GrGaussianConvolutionFragmentProcessor.cpp')
-rw-r--r-- | src/gpu/effects/GrGaussianConvolutionFragmentProcessor.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gpu/effects/GrGaussianConvolutionFragmentProcessor.cpp b/src/gpu/effects/GrGaussianConvolutionFragmentProcessor.cpp index eb6f49f7ad..ac22a8c0ef 100644 --- a/src/gpu/effects/GrGaussianConvolutionFragmentProcessor.cpp +++ b/src/gpu/effects/GrGaussianConvolutionFragmentProcessor.cpp @@ -176,7 +176,7 @@ void GrGLConvolutionEffect::GenKey(const GrProcessor& processor, const GrShaderC } /////////////////////////////////////////////////////////////////////////////// -static void fill_in_1D_guassian_kernel(float* kernel, int width, float gaussianSigma, int radius) { +static void fill_in_1D_gaussian_kernel(float* kernel, int width, float gaussianSigma, int radius) { const float denom = 1.0f / (2.0f * gaussianSigma * gaussianSigma); float sum = 0.0f; @@ -212,7 +212,7 @@ GrGaussianConvolutionFragmentProcessor::GrGaussianConvolutionFragmentProcessor( this->addTextureSampler(&fTextureSampler); SkASSERT(radius <= kMaxKernelRadius); - fill_in_1D_guassian_kernel(fKernel, this->width(), gaussianSigma, this->radius()); + fill_in_1D_gaussian_kernel(fKernel, this->width(), gaussianSigma, this->radius()); memcpy(fBounds, bounds, sizeof(fBounds)); } |