CesiumGS / cesium-native

Apache License 2.0
421 stars 212 forks source link

Preserve alignment in GltfUtilities::compactBuffer. #873

Closed kring closed 5 months ago

kring commented 5 months ago

Fixes #862

This is pretty much the simplest possible approach. When deleting bytes from the buffer, it only deletes multiples of 8 bytes.

kring commented 5 months ago

This PR also changes GltfUtilities::moveBufferContent to align to an 8-byte boundary rather than a 4-byte boundary.

lilleyse commented 5 months ago

Looks good