From 1afc04d8773d6e5c71c01bd4d74c9b5019844d45 Mon Sep 17 00:00:00 2001 From: humper Date: Fri, 6 Jun 2014 11:55:24 -0700 Subject: [PATCH] one channel texture fix for blur shader BUG=skia: R=bsalomon@google.com TBR=bsalomon NOTRY=True NOTREECHECKS=True Author: humper@google.com Review URL: https://codereview.chromium.org/319543007 --- src/effects/SkBlurMaskFilter.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/effects/SkBlurMaskFilter.cpp b/src/effects/SkBlurMaskFilter.cpp index f9760486d7..80fa9f8fe4 100644 --- a/src/effects/SkBlurMaskFilter.cpp +++ b/src/effects/SkBlurMaskFilter.cpp @@ -634,7 +634,7 @@ void OutputRectBlurProfileLookup(GrGLShaderBuilder* builder, loc, blurred_width, sharp_width, profileSize); builder->fsCodeAppendf("\t\t%s = ", output); builder->fsAppendTextureLookup(sampler, "vec2(coord,0.5)"); - builder->fsCodeAppend(";\n"); + builder->fsCodeAppend(".a;\n"); } void GrGLRectBlurEffect::emitCode(GrGLShaderBuilder* builder,