playcanvas / engine

JavaScript game engine built on WebGL, WebGPU, WebXR and glTF
https://playcanvas.com
MIT License
9.64k stars 1.34k forks source link

dataView.getBigUint64 not supported in lower version of Safari #3572

Closed issacclee closed 3 years ago

issacclee commented 3 years ago

The current ktx2 parser depends on the readU64 method in core(https://github.com/playcanvas/engine/blob/1414aa879ef98c8d6aeccde53dcd79182a08b459/src/core/read-stream.js#L49

Only Safari version 15 has implementation of it. This will cause gltf with KTX texture fail to load on ios device that haven't upgraded to IOS15.

slimbuck commented 3 years ago

Thanks for reporting this one @issacclee. We should definitely get this addressed.