Skip to content

Commit cdde45a

Browse files
committed
Phaser.RenderTexture incorrectly passed the scaleMode to Pixi.RenderTexture, causing the renderer to error.
1 parent 8d94b4a commit cdde45a

2 files changed

Lines changed: 2 additions & 1 deletion

File tree

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,7 @@ Version 2.0.6 - "Jornhill" - -in development-
7878
* Sprite.alive property now explicitly defined on the Sprite prototype (thanks @lewster32, #841)
7979
* BitmapData.resize now properly updates the baseTexture and texture dimensions.
8080
* Fixed Gamepad issue that incorrectly checked non-webkit prefix gamepads.
81+
* Phaser.RenderTexture incorrectly passed the scaleMode to Pixi.RenderTexture, causing the renderer to error.
8182

8283
### Migration Guide
8384

src/gameobjects/RenderTexture.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ Phaser.RenderTexture = function (game, width, height, key, scaleMode) {
4141
*/
4242
this._temp = new Phaser.Point();
4343

44-
PIXI.RenderTexture.call(this, width, height, scaleMode);
44+
PIXI.RenderTexture.call(this, width, height, this.game.renderer, scaleMode);
4545

4646
};
4747

0 commit comments

Comments
 (0)