Skip to content
This repository has been archived by the owner on Nov 12, 2024. It is now read-only.

Commit

Permalink
flush first before binding cnavas
Browse files Browse the repository at this point in the history
  • Loading branch information
slmjkdbtl committed Dec 28, 2023
1 parent 96b9aa4 commit b325224
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/kaboom.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1491,6 +1491,7 @@ export default (gopt: KaboomOpt = {}): KaboomCtx => {
width: fb.width,
height: fb.height,
draw: (action) => {
flush()
fb.bind()
action()
flush()
Expand Down

0 comments on commit b325224

Please sign in to comment.