From ed724cf442aa17773c2f26260c7fdec02bf629d1 Mon Sep 17 00:00:00 2001 From: pandamicro Date: Wed, 15 Aug 2018 16:43:05 +0800 Subject: [PATCH] Fix label blend issue when switch from ttf to bmf (#3094) --- cocos2d/core/components/CCLabel.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/cocos2d/core/components/CCLabel.js b/cocos2d/core/components/CCLabel.js index 848df65585..c28283014d 100644 --- a/cocos2d/core/components/CCLabel.js +++ b/cocos2d/core/components/CCLabel.js @@ -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); }