Revert "skip copy buffer when middleware buffer was empty (#8067)" (#8068)

This reverts commit 1eb82c7fb4.
This commit is contained in:
minggo
2020-12-31 17:30:56 +08:00
committed by GitHub
parent 1eb82c7fb4
commit dfdc1978a3
@@ -51,9 +51,6 @@
let bufferCount = middlewareMgr.getBufferCount(nativeFormat);
for(let i = 0; i < bufferCount; i++) {
let ibBytesLength = middlewareMgr.getIBTypedArrayLength(nativeFormat, i);
// middleware common buffer was empty, no need to copy to js mesh buffer
if (ibBytesLength == 0) continue;
let srcVertexCount = 65535;
let srcIndicesCount = ibBytesLength / 2; // USHORT
let srcVertexFloatCount = srcVertexCount * nativeFormat;