Phaser.RenderTexture incorrectly passed the scaleMode to Pixi.RenderTexture, causing the renderer to error.

This commit is contained in:
photonstorm 2014-05-27 13:35:47 +01:00
parent 8d94b4a91c
commit cdde45a292
2 changed files with 2 additions and 1 deletions

View file

@ -78,6 +78,7 @@ Version 2.0.6 - "Jornhill" - -in development-
* Sprite.alive property now explicitly defined on the Sprite prototype (thanks @lewster32, #841)
* BitmapData.resize now properly updates the baseTexture and texture dimensions.
* Fixed Gamepad issue that incorrectly checked non-webkit prefix gamepads.
* Phaser.RenderTexture incorrectly passed the scaleMode to Pixi.RenderTexture, causing the renderer to error.
### Migration Guide

View file

@ -41,7 +41,7 @@ Phaser.RenderTexture = function (game, width, height, key, scaleMode) {
*/
this._temp = new Phaser.Point();
PIXI.RenderTexture.call(this, width, height, scaleMode);
PIXI.RenderTexture.call(this, width, height, this.game.renderer, scaleMode);
};