From eb6a09ca0a53bada88846fa8951abda765443998 Mon Sep 17 00:00:00 2001 From: photonstorm Date: Wed, 3 Dec 2014 09:18:43 +0000 Subject: [PATCH] Pixi update. --- src/pixi/display/SpriteBatch.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/pixi/display/SpriteBatch.js b/src/pixi/display/SpriteBatch.js index 790d69696..eb62424fe 100644 --- a/src/pixi/display/SpriteBatch.js +++ b/src/pixi/display/SpriteBatch.js @@ -59,7 +59,7 @@ PIXI.SpriteBatch.prototype.initWebGL = function(gl) PIXI.SpriteBatch.prototype.updateTransform = function() { // TODO don't need to! - PIXI.DisplayObject.prototype.updateTransform.call( this ); + this.displayObjectUpdateTransform(); // PIXI.DisplayObjectContainer.prototype.updateTransform.call( this ); }; @@ -101,7 +101,7 @@ PIXI.SpriteBatch.prototype._renderCanvas = function(renderSession) var context = renderSession.context; context.globalAlpha = this.worldAlpha; - PIXI.DisplayObject.prototype.updateTransform.call(this); + this.displayObjectUpdateTransform(); var transform = this.worldTransform; // alow for trimming @@ -142,7 +142,7 @@ PIXI.SpriteBatch.prototype._renderCanvas = function(renderSession) { if(!isRotated)isRotated = true; - PIXI.DisplayObject.prototype.updateTransform.call(child); + child.displayObjectUpdateTransform(); var childTransform = child.worldTransform;