From 198180fec686d939f72089584c78891f500b5b25 Mon Sep 17 00:00:00 2001 From: Felipe Alfonso Date: Tue, 3 Apr 2018 12:03:02 -0300 Subject: [PATCH 1/2] Fixed issue https://github.com/photonstorm/phaser/issues/3475 --- src/gameobjects/rendertexture/RenderTexture.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gameobjects/rendertexture/RenderTexture.js b/src/gameobjects/rendertexture/RenderTexture.js index b0d04ea81..b239809db 100644 --- a/src/gameobjects/rendertexture/RenderTexture.js +++ b/src/gameobjects/rendertexture/RenderTexture.js @@ -141,7 +141,7 @@ var RenderTexture = new Class({ */ destroy: function () { - GameObject.destroy.call(this); + GameObject.prototype.destroy.call(this); if (this.renderer.type === CONST.WEBGL) { From e50c42e0b8c1364b1ed4cd51f7acce47b65c76ae Mon Sep 17 00:00:00 2001 From: Felipe Alfonso Date: Tue, 3 Apr 2018 13:24:14 -0300 Subject: [PATCH 2/2] Fixed issue with static tilemap layer not getting the real texture dimension issue ref: https://github.com/photonstorm/phaser/issues/3407 --- src/tilemaps/staticlayer/StaticTilemapLayer.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/tilemaps/staticlayer/StaticTilemapLayer.js b/src/tilemaps/staticlayer/StaticTilemapLayer.js index 1dcb0a59b..dfbe8cdf8 100644 --- a/src/tilemaps/staticlayer/StaticTilemapLayer.js +++ b/src/tilemaps/staticlayer/StaticTilemapLayer.js @@ -220,8 +220,8 @@ var StaticTilemapLayer = new Class({ var tileset = this.tileset; var mapWidth = this.layer.width; var mapHeight = this.layer.height; - var width = tileset.image.get().width; - var height = tileset.image.get().height; + var width = tileset.image.source[0].width; + var height = tileset.image.source[0].height; var mapData = this.layer.data; var renderer = this.renderer; var tile;