From f8ef74ee4cd59a1d863f6d1dfcf650f806a02e6d Mon Sep 17 00:00:00 2001 From: cary <39078800+caryliu1999@users.noreply.github.com> Date: Tue, 27 Oct 2020 15:59:20 +0800 Subject: [PATCH] Synchronize parameter changes of commit comp. (#7604) --- cocos/particle-2d/motion-streak-2d.ts | 2 +- cocos/particle-2d/particle-system-2d.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/cocos/particle-2d/motion-streak-2d.ts b/cocos/particle-2d/motion-streak-2d.ts index 0c6dec966d..58e461cff7 100644 --- a/cocos/particle-2d/motion-streak-2d.ts +++ b/cocos/particle-2d/motion-streak-2d.ts @@ -200,6 +200,6 @@ export class MotionStreak extends UIRenderable { } public _render (render: UI) { - render.commitComp(this, this._texture!.getGFXTexture(), this._assembler, this._texture!.getGFXSampler()); + render.commitComp(this, this._texture!, this._assembler); } } diff --git a/cocos/particle-2d/particle-system-2d.ts b/cocos/particle-2d/particle-system-2d.ts index a13dbccabf..cc6f3767f5 100644 --- a/cocos/particle-2d/particle-system-2d.ts +++ b/cocos/particle-2d/particle-system-2d.ts @@ -1217,7 +1217,7 @@ bv } protected _render (render: UI) { - render.commitComp(this, this._spriteFrame!.getGFXTexture(), this._assembler!, this._spriteFrame!.texture.getGFXSampler()); + render.commitComp(this, this._spriteFrame!, this._assembler!); } }