@@ -171,7 +171,7 @@ if (cc._renderType === cc._RENDER_TYPE_CANVAS) {
171
171
locHeight = node . _rect . height ,
172
172
image , curColor , contentSize ;
173
173
174
- var blendChange = ( node . _blendFuncStr !== "source" ) , alpha = ( node . _displayedOpacity / 255 ) ;
174
+ var blendChange = ( node . _blendFuncStr !== "source-over " ) , alpha = ( node . _displayedOpacity / 255 ) ;
175
175
176
176
if ( t . a !== 1 || t . b !== 0 || t . c !== 0 || t . d !== 1 || node . _flippedX || node . _flippedY ) {
177
177
context . save ( ) ;
@@ -304,7 +304,7 @@ if (cc._renderType === cc._RENDER_TYPE_CANVAS) {
304
304
return ;
305
305
306
306
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 ;
308
308
309
309
if ( needRestore ) {
310
310
context . save ( ) ;
@@ -343,7 +343,7 @@ if (cc._renderType === cc._RENDER_TYPE_CANVAS) {
343
343
return ;
344
344
345
345
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 ;
347
347
if ( needRestore ) {
348
348
context . save ( ) ;
349
349
context . globalCompositeOperation = node . _blendFuncStr ;
@@ -490,7 +490,7 @@ if (cc._renderType === cc._RENDER_TYPE_CANVAS) {
490
490
context . save ( ) ;
491
491
context . transform ( t . a , t . c , t . b , t . d , t . tx * scaleX , - t . ty * scaleY ) ;
492
492
493
- if ( locSprite . _blendFuncStr != "source" )
493
+ if ( locSprite . _blendFuncStr != "source-over " )
494
494
context . globalCompositeOperation = locSprite . _blendFuncStr ;
495
495
context . globalAlpha = alpha ;
496
496
0 commit comments