Set tile after creating helper
Co-authored-by: MoonE <maxi_kroeg@web.de>
This commit is contained in:
committed by
Andreas Hocevar
parent
79b3bc4244
commit
7f3f4e6cdd
@@ -94,8 +94,6 @@ class TileTexture extends EventTarget {
|
|||||||
this.textures = [];
|
this.textures = [];
|
||||||
this.handleTileChange_ = this.handleTileChange_.bind(this);
|
this.handleTileChange_ = this.handleTileChange_.bind(this);
|
||||||
|
|
||||||
this.setTile(tile);
|
|
||||||
|
|
||||||
this.size = toSize(grid.getTileSize(tile.tileCoord[0]));
|
this.size = toSize(grid.getTileSize(tile.tileCoord[0]));
|
||||||
|
|
||||||
this.bandCount = NaN;
|
this.bandCount = NaN;
|
||||||
@@ -114,7 +112,9 @@ class TileTexture extends EventTarget {
|
|||||||
0,
|
0,
|
||||||
]);
|
]);
|
||||||
helper.flushBufferData(coords);
|
helper.flushBufferData(coords);
|
||||||
|
|
||||||
this.coords = coords;
|
this.coords = coords;
|
||||||
|
this.setTile(tile);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in New Issue
Block a user