Update DisplayObject.js

`Phaser.RenderTexture` needs a reference to game as the first parameter
This commit is contained in:
Teng 2017-01-01 06:29:02 +08:00 committed by GitHub
parent 8dae244076
commit 29cea5b4ac

View file

@ -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;