Skip to content

Commit b406d10

Browse files
committed
Comments, and removed reinitialisation of the glBatch list.
1 parent 310b151 commit b406d10

2 files changed

Lines changed: 0 additions & 8 deletions

File tree

src/tilemap/TilemapLayerGL.js

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -670,8 +670,6 @@ Phaser.TilemapLayerGL.prototype.setScale = function (xScale, yScale) {
670670
*/
671671
Phaser.TilemapLayerGL.prototype.renderRegion = function (scrollX, scrollY, left, top, right, bottom) {
672672

673-
var context = this.context;
674-
675673
var width = this.layer.width;
676674
var height = this.layer.height;
677675
var tw = this._mc.tileWidth;
@@ -741,7 +739,6 @@ Phaser.TilemapLayerGL.prototype.renderRegion = function (scrollX, scrollY, left,
741739
set = this.resolveTileset(index);
742740
}
743741

744-
// Setting the globalAlpha is "surprisingly expensive" in Chrome (38)
745742
if (tile.alpha !== lastAlpha && !this.debug)
746743
{
747744
//context.globalAlpha = tile.alpha;

src/tilemap/Tileset.js

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -171,11 +171,6 @@ Phaser.Tileset.prototype = {
171171
if (coordIndex >= 0 && (coordIndex + 1) < this.drawCoords.length)
172172
{
173173
// add the tile to the webgl batch
174-
if ( !glBatch )
175-
{
176-
glBatch = [];
177-
}
178-
179174
// source and destination coordinates, in pixel units
180175
// destination is the centre of the tile
181176
glBatch.push( {

0 commit comments

Comments
 (0)