Jump to content

Crash in Phaser library on iOS


omnivibe
 Share

Recommended Posts

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

  • 4 weeks later...

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

  • 4 weeks later...
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...