测试设备 iphone 5s ios 10.2.1
ERROR: TypeError: Invalid array length argument (fractional lengths not allowed), location: jsb-adapter/jsb-builtin.js:6549:31
STACK:
Uint32Array@[native code]
updateSubImage@jsb-adapter/jsb-builtin.js:6549:31
drawTextureAt@src/cocos2d-jsb.js:12562:37
insertLetterTexture@src/cocos2d-jsb.js:37235:55
导致黑屏
修改一下,在 jsb-builtin.js 6549行
原
var data = new Uint32Array(8 + (images[0].length + 3) / 4);
修改后
var data = new Uint32Array(8 + Math.floor((images[0].length + 3) / 4));//floor or cell ??? @引擎组