Fix label blend issue when switch from ttf to bmf (#3094)

This commit is contained in:
pandamicro
2018-08-15 16:43:05 +08:00
committed by GitHub
parent e92c36593e
commit ed724cf442
+3
View File
@@ -563,6 +563,9 @@ let Label = cc.Class({
if (this._texture === this._ttfTexture) {
this._srcBlendFactor = cc.macro.ONE;
}
else {
this._srcBlendFactor = cc.macro.SRC_ALPHA;
}
material.texture = this._texture;
this._updateMaterial(material);
}