Index: src/gpu/effects/GrBitmapTextGeoProc.cpp |
diff --git a/src/gpu/effects/GrBitmapTextGeoProc.cpp b/src/gpu/effects/GrBitmapTextGeoProc.cpp |
index a8643b03f992a8dba536fb4cff6c6b558bba48c0..ac4e7dfc5f63400a057edf6ca805f0002cb45416 100644 |
--- a/src/gpu/effects/GrBitmapTextGeoProc.cpp |
+++ b/src/gpu/effects/GrBitmapTextGeoProc.cpp |
@@ -146,7 +146,8 @@ GrBitmapTextGeoProc::GrBitmapTextGeoProc(GrColor color, GrTexture* texture, |
// TODO we could think about removing this attribute if color is ignored, but unfortunately |
bsalomon
2015/12/08 16:27:13
Are we really every going to do this? Seems like w
joshualitt
2015/12/08 17:04:37
Given infinite time and infinite resources...okay
|
// we don't do text positioning in batch, so we can't quite do that yet. |
- bool hasVertexColor = kA8_GrMaskFormat == fMaskFormat; |
+ bool hasVertexColor = kA8_GrMaskFormat == fMaskFormat || |
+ kA565_GrMaskFormat == fMaskFormat; |
if (hasVertexColor) { |
fInColor = &this->addVertexAttrib(Attribute("inColor", kVec4ub_GrVertexAttribType)); |
} |