Skip to content

Commit 8cf0255

Browse files
committed
Merge pull request cocos2d#2777 from dingpinglv/Iss2698_namespace
Fixed cocos2d#2776: Fixed a bug of cc.ClippingNode that it doesn't work when set Inverted to true on Canvas Mode.
2 parents 988a036 + 9079cbe commit 8cf0255

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

cocos2d/clipping-nodes/CCClippingNodeCanvasRenderCmd.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -104,8 +104,8 @@
104104
if(!stencil)
105105
return;
106106
var node = this._node;
107-
if(stencil._renderCmd && stencil._renderCmd._setBlendFuncStr)
108-
stencil._renderCmd._setBlendFuncStr(node.inverted ? "destination-out" : "destination-in");
107+
if(stencil._renderCmd && stencil._renderCmd._blendFuncStr)
108+
stencil._renderCmd._blendFuncStr = (node.inverted ? "destination-out" : "destination-in");
109109

110110
if(!stencil._children)
111111
return;

0 commit comments

Comments
 (0)