Skip to content

Commit 6108091

Browse files
committed
Merge branch 'dev' of https://github.com/photonstorm/phaser into wip-tilelayer
2 parents 22be4b0 + 35c42e3 commit 6108091

2 files changed

Lines changed: 3 additions & 1 deletion

File tree

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,7 @@ Version 2.2.0 - "Tarabon" - in development
8181

8282
### Bug Fixes
8383

84+
* Tilemaps in WebGL wouldn't update after the first frame due to a subtle change in how Pixi uploads new textures to the GPU.
8485

8586

8687
For details about changes made in previous versions of Phaser see the full Change Log at https://github.com/photonstorm/phaser/blob/master/CHANGELOG.md

src/tilemap/TilemapLayer.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
* Since a TilemapLayer is a Sprite it can be moved around the display, added to other groups or display objects, etc.
1111
*
1212
* @class Phaser.TilemapLayer
13+
* @extends {Phaser.Image}
1314
* @constructor
1415
* @param {Phaser.Game} game - Game reference to the currently running game.
1516
* @param {Phaser.Tilemap} tilemap - The tilemap to which this layer belongs.
@@ -966,7 +967,7 @@ Phaser.TilemapLayer.prototype.render = function () {
966967
this.renderDebug();
967968
}
968969

969-
this.texture._updateUvs();
970+
this.baseTexture.dirty();
970971

971972
this.dirty = false;
972973

0 commit comments

Comments
 (0)