Skip to content

Commit b829677

Browse files
committed
fixed cocos2d#1356 improve cc.Sprite performance for setColor
1 parent 880f414 commit b829677

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

cocos2d/sprite_nodes/CCSprite.js

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -130,9 +130,6 @@ cc.generateTintImage = function (texture, tintedImgCache, color, rect, renderCan
130130
buff.width = rect.size.width;
131131
buff.height = rect.size.height;
132132
var ctx = buff.getContext("2d");
133-
//ctx.globalAlpha = 1;
134-
//ctx.globalCompositeOperation = 'copy';
135-
//ctx.drawImage(tintedImgCache[3], rect.origin.x, rect.origin.y, rect.size.width, rect.size.height, 0, 0, rect.size.width, rect.size.height);
136133

137134
ctx.globalCompositeOperation = 'lighter';
138135
if (selColor.r > 0) {

0 commit comments

Comments
 (0)