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);