Set tile after creating helper

Co-authored-by: MoonE <maxi_kroeg@web.de>
This commit is contained in:
Tim Schaub
2021-08-04 13:39:07 -06:00
committed by Andreas Hocevar
parent 79b3bc4244
commit 7f3f4e6cdd

View File

@@ -94,8 +94,6 @@ class TileTexture extends EventTarget {
this.textures = [];
this.handleTileChange_ = this.handleTileChange_.bind(this);
this.setTile(tile);
this.size = toSize(grid.getTileSize(tile.tileCoord[0]));
this.bandCount = NaN;
@@ -114,7 +112,9 @@ class TileTexture extends EventTarget {
0,
]);
helper.flushBufferData(coords);
this.coords = coords;
this.setTile(tile);
}
/**