-
Notifications
You must be signed in to change notification settings - Fork 903
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
cc.RenderTexture.newCCImage throws exception in 2.1.2 #854
Comments
Thank you, Maksim. |
Just got update , still not working in chrome at least. |
The line 567 of cc.RenderTexture is : I thought that CCImage.js isn't load from jsload, but I check jsload.js again, It loads after CCConfig.js, and I have tested newCCImage() of cc.RenderTexture again, It doest work. Thanks. |
Seems was issue with chrome cache. The code snippet below always returns null. renderMode is set to 1 (canvas). var ccImage = texture.newCCImage(); |
I'm sorry to say that cc.TextureRender.newCCImage isn't supported on Cococs2d-html5, because cc.Image is not implemented on html5. |
Uncaught TypeError: undefined is not a function CCRenderTexture.js:567
cc.RenderTexture.cc.Node.extend.newCCImage CCRenderTexture.js:567
BaseMenuLayer.extend.init ChooseLevelLayer.js:95
(anonymous function) CCClass.js:138
ChooseLevelLayer.create ChooseLevelLayer.js:176
BaseScene.extend.onEnter MainMenuScene.js:75
(anonymous function) CCClass.js:138
cc.Director.cc.Class.extend.setNextScene CCDirector.js:749
cc.Director.cc.Class.extend._drawSceneForWebGL CCDirector.js:381
cc.Director.cc.Class.extend.drawScene CCDirector.js:341
cc.DisplayLinkDirector.cc.Director.extend.mainLoop CCDirector.js:1127
callback
The text was updated successfully, but these errors were encountered: