From 3f1cafe21f913e9a285796f0043efc3deb52bd29 Mon Sep 17 00:00:00 2001 From: Richard Davey Date: Thu, 19 Sep 2013 13:33:51 +0100 Subject: [PATCH] Put the famous idnetityMatrix typo back in so it doesn't break Pixi --- README.md | 1 + src/gameobjects/RenderTexture.js | 4 +++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 5963287e..ba73690d 100644 --- a/README.md +++ b/README.md @@ -42,6 +42,7 @@ Version 1.0.5 (In progress) * Fixed a horrendously sneaky bug: If a new tween was created in the onComplete callback of a tween about to be deleted, it would get automatically spliced. * Added a pendingDelete property to Tween to stop tweens that were removed during a callback from causing update errors during the TweenManager loop. * Added Group.length property. +* Added explicit x/y attributes to Phaser.Text to make it work with the camera system (thanks cocoademon). diff --git a/src/gameobjects/RenderTexture.js b/src/gameobjects/RenderTexture.js index 4136c5d5..10d8560a 100644 --- a/src/gameobjects/RenderTexture.js +++ b/src/gameobjects/RenderTexture.js @@ -9,7 +9,9 @@ Phaser.RenderTexture = function (game, key, width, height) { this.width = width || 100; this.height = height || 100; - this.identityMatrix = PIXI.mat3.create(); + // I know this has a typo in it, but it's because the PIXI.RenderTexture does and we need to pair-up with it + // once they update pixi to fix the typo, we'll fix it here too :) + this.indetityMatrix = PIXI.mat3.create(); this.frame = new PIXI.Rectangle(0, 0, this.width, this.height);