This commit is contained in:
ysk2014 2020-07-27 15:38:54 +08:00
parent 4dd4a69c7a
commit 809476ff7b

View File

@ -121,8 +121,12 @@ export class CanvasRenderer {
}
popEffect() {
const globalAlpha = this.ctx.globalAlpha;
this._activeEffects.pop();
this.ctx.restore();
if (globalAlpha) {
this.ctx.globalAlpha = globalAlpha;
}
}
async renderStack(stack: StackingContext) {