Update DisplayObject.js

This commit is contained in:
Teng 2017-01-01 06:34:45 +08:00 committed by GitHub
parent 29cea5b4ac
commit fae7c7eaf9

View file

@ -426,7 +426,7 @@ PIXI.DisplayObject.prototype = {
var bounds = this.getLocalBounds();
var renderTexture = new Phaser.RenderTexture(null, bounds.width | 0, bounds.height | 0, renderer, scaleMode, resolution);
var renderTexture = new Phaser.RenderTexture(this.game, bounds.width | 0, bounds.height | 0, renderer, scaleMode, resolution);
PIXI.DisplayObject._tempMatrix.tx = -bounds.x;
PIXI.DisplayObject._tempMatrix.ty = -bounds.y;