Minor fix in Ganesh shader generation.

R=bsalomon@google.com

Author: skaslev@chromium.org

Review URL: https://codereview.chromium.org/78843006

git-svn-id: http://skia.googlecode.com/svn/trunk@12343 2bbb7eff-a529-9590-31e7-b0007b416f81
This commit is contained in:
commit-bot@chromium.org 2013-11-21 15:57:40 +00:00
parent 22d39332bd
commit 8660783e19

View File

@ -86,6 +86,7 @@ void GrGLSLMulVarBy4f(SkString* outAppend,
if (mulFactor.isZeros()) { if (mulFactor.isZeros()) {
outAppend->appendf("%s = vec4(0);\n", vec4VarName); outAppend->appendf("%s = vec4(0);\n", vec4VarName);
} else {
outAppend->appendf("%s *= %s;\n", vec4VarName, mulFactor.c_str());
} }
outAppend->appendf("%s *= %s;\n", vec4VarName, mulFactor.c_str());
} }