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) { 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;