Index: src/gpu/effects/GrBitmapTextGeoProc.cpp |
diff --git a/src/gpu/effects/GrBitmapTextGeoProc.cpp b/src/gpu/effects/GrBitmapTextGeoProc.cpp |
index 7f5366363f9d568bb56206adf2aeeffbb60eb5cc..197ac730b23f159bf8925e43057f0546fe46d21a 100644 |
--- a/src/gpu/effects/GrBitmapTextGeoProc.cpp |
+++ b/src/gpu/effects/GrBitmapTextGeoProc.cpp |
@@ -63,13 +63,15 @@ public: |
args.fFPCoordTransformHandler); |
if (cte.maskFormat() == kARGB_GrMaskFormat) { |
- fragBuilder->codeAppendf("%s = ", args.fOutputColor); |
- fragBuilder->appendTextureLookupAndModulate(args.fOutputColor, |
- args.fTexSamplers[0], |
- v.fsIn(), |
- kVec2f_GrSLType); |
- fragBuilder->codeAppend(";"); |
- fragBuilder->codeAppendf("%s = vec4(1);", args.fOutputCoverage); |
+ if (!cte.colorIgnored()) { |
+ fragBuilder->codeAppendf("%s = ", args.fOutputColor); |
+ fragBuilder->appendTextureLookupAndModulate(args.fOutputColor, |
+ args.fTexSamplers[0], |
+ v.fsIn(), |
+ kVec2f_GrSLType); |
+ fragBuilder->codeAppend(";"); |
+ fragBuilder->codeAppendf("%s = vec4(1);", args.fOutputCoverage); |
+ } |
} else { |
fragBuilder->codeAppendf("%s = ", args.fOutputCoverage); |
fragBuilder->appendTextureLookup(args.fTexSamplers[0], v.fsIn(), kVec2f_GrSLType); |