想用rendertexture 实现截屏,模拟器正常工作,浏览器会报错
modular-cocos2d.js:14699 Uncaught TypeError: cc.kmGLPushMatrix is not a function
代码:
var renderTexture = cc.RenderTexture.create(599,599); renderTexture.begin(); this.node._sgNode.visit(); renderTexture.end(); this.node._sgNode.addChild( renderTexture , 9999 );