Index: src/gpu/effects/GrConfigConversionEffect.cpp |
diff --git a/src/gpu/effects/GrConfigConversionEffect.cpp b/src/gpu/effects/GrConfigConversionEffect.cpp |
index 2290cb930e750600acd241368de5ce38c20bb362..8f58feff79ba0d3d20c0dde4dab531c109657304 100644 |
--- a/src/gpu/effects/GrConfigConversionEffect.cpp |
+++ b/src/gpu/effects/GrConfigConversionEffect.cpp |
@@ -30,12 +30,12 @@ public: |
const char* outputColor, |
const char* inputColor, |
const TextureSamplerArray& samplers) SK_OVERRIDE { |
- const char* coords; |
+ SkString coords; |
GrSLType coordsType = fEffectMatrix.emitCode(builder, key, &coords); |
builder->fsCodeAppendf("\t\t%s = ", outputColor); |
builder->appendTextureLookup(GrGLShaderBuilder::kFragment_ShaderType, |
samplers[0], |
- coords, |
+ coords.c_str(), |
coordsType); |
builder->fsCodeAppend(";\n"); |
if (GrConfigConversionEffect::kNone_PMConversion == fPMConversion) { |