Index: src/effects/SkArithmeticMode.cpp |
diff --git a/src/effects/SkArithmeticMode.cpp b/src/effects/SkArithmeticMode.cpp |
index ed29130369e9c71fdde912e10ff0a1142336cc4e..1efa11510609dbd802aaa53158411672f58f09ee 100644 |
--- a/src/effects/SkArithmeticMode.cpp |
+++ b/src/effects/SkArithmeticMode.cpp |
@@ -351,12 +351,12 @@ void GrGLArithmeticEffect::emitCode(GrGLShaderBuilder* builder, |
GrTexture* backgroundTex = drawEffect.castEffect<GrArithmeticEffect>().backgroundTexture(); |
const char* dstColor; |
if (backgroundTex) { |
- const char* bgCoords; |
+ SkString bgCoords; |
GrSLType bgCoordsType = fBackgroundEffectMatrix.emitCode(builder, key, &bgCoords, NULL, "BG"); |
builder->fsCodeAppend("\t\tvec4 bgColor = "); |
builder->appendTextureLookup(GrGLShaderBuilder::kFragment_ShaderType, |
samplers[0], |
- bgCoords, |
+ bgCoords.c_str(), |
bgCoordsType); |
builder->fsCodeAppendf(";\n"); |
dstColor = "bgColor"; |