Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
ysk2014 committed Jul 27, 2020
1 parent 4dd4a69 commit 809476f
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/render/canvas/canvas-renderer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 809476f

Please sign in to comment.