Skip to content
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

TileSprite loadTexture crash #1495

Closed
pandavigoureux29 opened this issue Dec 30, 2014 · 3 comments
Closed

TileSprite loadTexture crash #1495

pandavigoureux29 opened this issue Dec 30, 2014 · 3 comments

Comments

@pandavigoureux29
Copy link

I want to load a texture
tilesprite.loadTexture("imageName");

With sprites, it works fine. But with tilesprites, it crashes :
Uncaught TypeError: undefined is not a function at phaser.js 10857

I went to phaser.js to see the line that looks like this :
PIXI.updateWebGLTexture(this.tilingTexture.baseTexture, renderSession.gl);

It seems that PIXI.updateWebGLTexture is undefined ! ( I console.log it )
Just so you know, I'm in WebGL mode.

@pnstickne
Copy link
Contributor

@pandavigoureux29
This is a PIXI regression. There is indeed no more PIXI.updateWebGLTexture and this part of pixi has not been updated. (It could also be fixed in a later pixi head/dev version.)

Consider posting the issue to https://github.com/GoodBoyDigital/pixi.js/issues, if it has not already been done.

@photonstorm
Copy link
Collaborator

I wouldn't bother, it looks like they've stopped fixing bugs in an attempt to break Pixi up into modules. That's going to take a while (and will make it incompatible with Phaser) so from now on I'm happy to fix Pixi issues directly in the Phaser source, which will include this.

@photonstorm
Copy link
Collaborator

This is now fixed in dev branch.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants