Index: src/effects/SkArithmeticMode.cpp |
diff --git a/src/effects/SkArithmeticMode.cpp b/src/effects/SkArithmeticMode.cpp |
index d746ecbc3120d0111716d39ba47806177fe1808e..fff03c291fb27550a44ead6dae5164deabbd3bcc 100644 |
--- a/src/effects/SkArithmeticMode.cpp |
+++ b/src/effects/SkArithmeticMode.cpp |
@@ -366,7 +366,7 @@ void GrGLArithmeticEffect::emitCode(GrGLShaderBuilder* builder, |
// We don't try to optimize for this case at all |
if (NULL == inputColor) { |
- builder->fsCodeAppendf("\t\tconst vec4 src = %s;\n", GrGLSLOnesVecf(4)); |
+ builder->fsCodeAppendf("\t\tconst vec4 src = vec4(1);\n"); |
} else { |
builder->fsCodeAppendf("\t\tvec4 src = %s;\n", inputColor); |
if (gUseUnpremul) { |