Skip to content

Commit 81b04d6

Browse files
committed
Issue cocos2d#2416: RenderTexture position
1 parent 5dc0a22 commit 81b04d6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

cocos2d/render-texture/CCRenderTextureCanvasRenderCmd.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@
108108
proto.visit = function(parentCmd){
109109
var node = this._node;
110110
this._syncStatus(parentCmd);
111-
node.sprite.visit(parentCmd);
111+
node.sprite.visit(this);
112112
this._dirtyFlag = 0;
113113
};
114114

@@ -131,7 +131,7 @@
131131
for (var i = 0; i < childrenLen; i++) {
132132
var getChild = locChildren[i];
133133
if (getChild != selfSprite)
134-
getChild.visit();
134+
getChild.visit(this);
135135
}
136136
node.end();
137137
};

0 commit comments

Comments
 (0)