omnivibe Posted December 30, 2014 Share Posted December 30, 2014 When I try to add a RenderTexture to the game, it works fine on Windows and OSX, but causes a TypeError in the Phaser library on iOS. Any idea why that is? See:var game = new Phaser.Game(800, 600, Phaser.AUTO, '', {preload : preload,create : create,update : update});function preload() {}function create() {drawLayer = game.add.renderTexture(800, 600, 'drawLayer');//This is the problem linegame.add.sprite(0, 0, drawLayer);}function update() {}Note, I also posted this on StackOverflow: http://stackoverflow.com/questions/27704120/phaser-adding-rendertexture-causes-typeerror-on-ios Link to comment Share on other sites More sharing options...
amadeus Posted January 27, 2015 Share Posted January 27, 2015 Bump, I've noticed the same issue. Specifically, the error is that texture.source is undefined on this function: PIXI.WebGLRenderer.prototype.updateTexture: gl.texImage2D(gl.TEXTURE_2D, 0, gl.RGBA, gl.RGBA, gl.UNSIGNED_BYTE, texture.source); Which means it's probably a PIXI issue unfortunately. Link to comment Share on other sites More sharing options...
efusien Posted February 20, 2015 Share Posted February 20, 2015 +1 Same issue :-( With Phaser.CANVAS mode it's working. Link to comment Share on other sites More sharing options...
amadeus Posted February 27, 2015 Share Posted February 27, 2015 This issue has been fixed in the dev branch of Phaser, and I would assume it should make it out into a release sometime soon. Link to comment Share on other sites More sharing options...
Recommended Posts