Index: src/gpu/gl/builders/GrGLProgramBuilder.cpp |
diff --git a/src/gpu/gl/builders/GrGLProgramBuilder.cpp b/src/gpu/gl/builders/GrGLProgramBuilder.cpp |
index 6f3214f23a8368856dafed2a6283cfb16aa5ac3e..861410bf13ed5c1e2619e0e2ca6ec6dce98ef43c 100644 |
--- a/src/gpu/gl/builders/GrGLProgramBuilder.cpp |
+++ b/src/gpu/gl/builders/GrGLProgramBuilder.cpp |
@@ -401,12 +401,10 @@ void GrGLProgramBuilder::emitTransforms(const GrPendingFragmentStage& stage, |
varyingName = suffixedVaryingName.c_str(); |
} |
- bool useLocalCoords = kLocal_GrCoordSet == processor->coordTransform(t).sourceCoords(); |
- const char* coords = useLocalCoords ? fVS.localCoords() : fVS.positionCoords(); |
- |
+ GrCoordSet coordType = processor->coordTransform(t).sourceCoords(); |
GrGLVertToFrag v(varyingType); |
this->addVarying(varyingName, &v, precision); |
- fCoordVaryings.push_back(TransformVarying(v, uniName, coords)); |
+ fCoordVaryings.push_back(TransformVarying(v, uniName, coordType)); |
SkASSERT(kVec2f_GrSLType == varyingType || kVec3f_GrSLType == varyingType); |
SkNEW_APPEND_TO_TARRAY(outCoords, GrGLProcessor::TransformedCoords, |