Skip to content

Commit 29cea5b

Browse files
authored
Update DisplayObject.js
`Phaser.RenderTexture` needs a reference to game as the first parameter
1 parent 8dae244 commit 29cea5b

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

v2-community/src/pixi/display/DisplayObject.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -426,7 +426,7 @@ PIXI.DisplayObject.prototype = {
426426

427427
var bounds = this.getLocalBounds();
428428

429-
var renderTexture = new Phaser.RenderTexture(bounds.width | 0, bounds.height | 0, renderer, scaleMode, resolution);
429+
var renderTexture = new Phaser.RenderTexture(null, bounds.width | 0, bounds.height | 0, renderer, scaleMode, resolution);
430430

431431
PIXI.DisplayObject._tempMatrix.tx = -bounds.x;
432432
PIXI.DisplayObject._tempMatrix.ty = -bounds.y;

0 commit comments

Comments
 (0)