@@ -171,7 +171,7 @@ if (cc._renderType === cc._RENDER_TYPE_CANVAS) {
171171 locHeight = node . _rect . height ,
172172 image , curColor , contentSize ;
173173
174- var blendChange = ( node . _blendFuncStr !== "source" ) , alpha = ( node . _displayedOpacity / 255 ) ;
174+ var blendChange = ( node . _blendFuncStr !== "source-over " ) , alpha = ( node . _displayedOpacity / 255 ) ;
175175
176176 if ( t . a !== 1 || t . b !== 0 || t . c !== 0 || t . d !== 1 || node . _flippedX || node . _flippedY ) {
177177 context . save ( ) ;
@@ -304,7 +304,7 @@ if (cc._renderType === cc._RENDER_TYPE_CANVAS) {
304304 return ;
305305
306306 var needTransform = ( t . a !== 1 || t . b !== 0 || t . c !== 0 || t . d !== 1 ) ; //TODO
307- var needRestore = ( node . _blendFuncStr !== "source" ) || needTransform ;
307+ var needRestore = ( node . _blendFuncStr !== "source-over " ) || needTransform ;
308308
309309 if ( needRestore ) {
310310 context . save ( ) ;
@@ -343,7 +343,7 @@ if (cc._renderType === cc._RENDER_TYPE_CANVAS) {
343343 return ;
344344
345345 var needTransform = ( t . a !== 1 || t . b !== 0 || t . c !== 0 || t . d !== 1 ) ;
346- var needRestore = ( node . _blendFuncStr !== "source" ) || needTransform ;
346+ var needRestore = ( node . _blendFuncStr !== "source-over " ) || needTransform ;
347347 if ( needRestore ) {
348348 context . save ( ) ;
349349 context . globalCompositeOperation = node . _blendFuncStr ;
@@ -490,7 +490,7 @@ if (cc._renderType === cc._RENDER_TYPE_CANVAS) {
490490 context . save ( ) ;
491491 context . transform ( t . a , t . c , t . b , t . d , t . tx * scaleX , - t . ty * scaleY ) ;
492492
493- if ( locSprite . _blendFuncStr != "source" )
493+ if ( locSprite . _blendFuncStr != "source-over " )
494494 context . globalCompositeOperation = locSprite . _blendFuncStr ;
495495 context . globalAlpha = alpha ;
496496
0 commit comments