@@ -28,9 +28,6 @@ Phaser.TilemapLayerGL = function (game, tilemap, index, width, height) {
2828
2929 this . game = game ;
3030
31- width |= 0 ;
32- height |= 0 ;
33-
3431 /**
3532 * The Tilemap to which this layer is bound.
3633 * @property {Phaser.Tilemap } map
@@ -219,7 +216,7 @@ Phaser.TilemapLayerGL = function (game, tilemap, index, width, height) {
219216 // get PIXI textures for each tileset source image
220217 var baseTexture = new PIXI . BaseTexture ( tileset . image ) ;
221218
222- PIXI . Tilemap . call ( this , new PIXI . Texture ( baseTexture ) , this . map . width , this . map . height , this . _mc . tileset . tileWidth , this . _mc . tileset . tileHeight , this . layer ) ;
219+ PIXI . Tilemap . call ( this , new PIXI . Texture ( baseTexture ) , width | 0 , height | 0 , this . map . width , this . map . height , this . _mc . tileset . tileWidth , this . _mc . tileset . tileHeight , this . layer ) ;
223220
224221 Phaser . Component . Core . init . call ( this , game , 0 , 0 , null , null ) ;
225222
@@ -296,24 +293,9 @@ Phaser.TilemapLayerGL.prototype.destroy = function() {
296293*/
297294Phaser . TilemapLayerGL . prototype . resize = function ( width , height ) {
298295
299- this . texture . frame . resize ( width , height ) ;
300-
301- this . texture . width = width ;
302- this . texture . height = height ;
303-
304- this . texture . crop . width = width ;
305- this . texture . crop . height = height ;
306-
307- this . texture . baseTexture . width = width ;
308- this . texture . baseTexture . height = height ;
309-
310- this . texture . baseTexture . dirty ( ) ;
311- this . texture . requiresUpdate = true ;
312-
313- this . texture . _updateUvs ( ) ;
314-
296+ this . displayWidth = width ;
297+ this . displayHeight = height ;
315298 this . dirty = true ;
316-
317299} ;
318300
319301/**
0 commit comments