-
Notifications
You must be signed in to change notification settings - Fork 416
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Worldview: Paint again if onDirty was called during paint (copy of #614…
…) (#616) * Worldview: Paint again if onDirty was called during paint In some cases, since components can register arbitrary functions to be called during paint(), painting may trigger a React state update, which causes us to call onDirty again. But since a paint is currently in progress, we just ignore the onDirty call, which means that the new state never gets drawn until another paint is triggered in the future. Fix this by keeping track of whether onDirty is called during paint, and if so just queue up another frame. * Bump regl-worldview to 0.16.1 * Fix build error Co-authored-by: Jacob Bandes-Storch <[email protected]>
- Loading branch information
1 parent
67fce1d
commit 05c5ab9
Showing
4 changed files
with
24 additions
and
157 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters