mirror of
https://github.com/photonstorm/phaser
synced 2024-11-23 05:03:37 +00:00
Update DisplayObject.js
`Phaser.RenderTexture` needs a reference to game as the first parameter
This commit is contained in:
parent
8dae244076
commit
29cea5b4ac
1 changed files with 1 additions and 1 deletions
|
@ -426,7 +426,7 @@ PIXI.DisplayObject.prototype = {
|
|||
|
||||
var bounds = this.getLocalBounds();
|
||||
|
||||
var renderTexture = new Phaser.RenderTexture(bounds.width | 0, bounds.height | 0, renderer, scaleMode, resolution);
|
||||
var renderTexture = new Phaser.RenderTexture(null, bounds.width | 0, bounds.height | 0, renderer, scaleMode, resolution);
|
||||
|
||||
PIXI.DisplayObject._tempMatrix.tx = -bounds.x;
|
||||
PIXI.DisplayObject._tempMatrix.ty = -bounds.y;
|
||||
|
|
Loading…
Reference in a new issue