OritentationSprite fix, not using PIXI.TextureCache anymore

This commit is contained in:
Johan Rosén 2014-07-16 17:07:53 +02:00
parent fc047c5870
commit ba62326ce7

View file

@ -396,7 +396,7 @@ Phaser.ScaleManager.prototype = {
orientationImage = '__default';
}
this.orientationSprite = new Phaser.Image(this.game, this.game.width / 2, this.game.height / 2, PIXI.TextureCache[orientationImage]);
this.orientationSprite = new Phaser.Image(this.game, this.game.width / 2, this.game.height / 2, orientationImage);
this.orientationSprite.anchor.set(0.5);
this.checkOrientationState();