Bugfix Uncaught RangeError: Invalid typed array length: 512
This commit is contained in:
committed by
Joshua Granick
parent
d8ac0c032f
commit
6d5da58fd7
@@ -248,6 +248,7 @@ abstract DataPointer(DataPointerType) to DataPointerType {
|
|||||||
|
|
||||||
} else {
|
} else {
|
||||||
|
|
||||||
|
if (length > data.bufferView.byteLength) length = data.bufferView.byteLength;
|
||||||
return new Float32Array (data.bufferView.buffer, data.bufferView.byteOffset + data.offset, Std.int (length / Float32Array.BYTES_PER_ELEMENT));
|
return new Float32Array (data.bufferView.buffer, data.bufferView.byteOffset + data.offset, Std.int (length / Float32Array.BYTES_PER_ELEMENT));
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user