Skip to content

fix(TileGeometry): fix incorrect condition to select between Uint16/Uint32Array for index buffer

Sébastien Guimmara requested to merge tilegeometry-index-buffer into main

The length of the position buffer is the correct criterion, not the length of the index buffer.

Note: this bug is very unlikely to happen, because it would be triggered only when the .segments property of the Map is greater than 256, which is already enormous and not even supported.

Note: this fixes a regression caused by !574 (merged).

Merge request reports