From 9d9481fb543b07a2f63ea4e01eb46c31fdb54f48 Mon Sep 17 00:00:00 2001 From: zxx43 Date: Tue, 16 Nov 2021 10:34:51 +0800 Subject: [PATCH] revert (#9668) --- cocos/particle/models/particle-batch-model.ts | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/cocos/particle/models/particle-batch-model.ts b/cocos/particle/models/particle-batch-model.ts index c7cbf2ab7f..83cc17ddf3 100644 --- a/cocos/particle/models/particle-batch-model.ts +++ b/cocos/particle/models/particle-batch-model.ts @@ -308,13 +308,8 @@ export default class ParticleBatchModel extends scene.Model { } public updateIA (count: number) { - if (count <= 0) { - return; - } const ia = this._subModels[0].inputAssembler; - const byteLength = this._vertAttrsFloatCount * this._vertCount; - ia.vertexBuffers[0].update(this._vdataF32!, count * byteLength * 4); - // ia.vertexBuffers[0].update(this._vdataF32!); + ia.vertexBuffers[0].update(this._vdataF32!); this._iaInfo.drawInfos[0].firstIndex = 0; this._iaInfo.drawInfos[0].indexCount = this._indexCount * count; this._iaInfoBuffer!.update(this._iaInfo);