Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix loseContext/restoreContext #8835

Merged
merged 2 commits into from Nov 12, 2022
Merged

Fix loseContext/restoreContext #8835

merged 2 commits into from Nov 12, 2022

Conversation

dev7355608
Copy link
Collaborator

Fixes context restoration after a loss. It didn't seem to work before. I think this is the correct way to restore the context.

Test: Lose context after 1 sec.

Systems need to call disposeAll(true) before assigning the new CONTEXT_UID in contextChange. The framebuffer system was calling it after.

Pre-Merge Checklist
  • Tests and/or benchmarks are included
  • Lint process passed (npm run lint)
  • Tests passed (npm run test)

@bigtimebuddy bigtimebuddy added this to the v7.0.4 milestone Nov 10, 2022
@bigtimebuddy bigtimebuddy modified the milestones: v7.0.4, v7.1.0 Nov 10, 2022
@bigtimebuddy bigtimebuddy added the ✅ Ready To Merge Helpful when issues are in the queue waiting to get merged. This means the PR is completed and has t label Nov 10, 2022
Copy link
Member

@GoodBoyDigital GoodBoyDigital left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm!

@SuperSodaSea
Copy link
Member

Should this PR link to #7232?

@bigtimebuddy bigtimebuddy linked an issue Nov 11, 2022 that may be closed by this pull request
@bigtimebuddy bigtimebuddy merged commit 1c1b6d9 into dev Nov 12, 2022
@bigtimebuddy bigtimebuddy deleted the fix/loseContext branch November 12, 2022 02:28
bigtimebuddy added a commit that referenced this pull request Dec 12, 2022
Co-authored-by: Matt Karl <matt@mattkarl.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
✅ Ready To Merge Helpful when issues are in the queue waiting to get merged. This means the PR is completed and has t
Projects
None yet
Development

Successfully merging this pull request may close these issues.

WEBGL_lose_context.restoreContext is used for restoring context
4 participants