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

add onContextLoss to webgl addon #3276

Merged
merged 6 commits into from
Apr 2, 2021
Merged

Conversation

meganrogge
Copy link
Member

@meganrogge meganrogge commented Apr 1, 2021

So that VS code can fall back to dom when the webgl renderer loses context

Fixes #2253

@meganrogge meganrogge requested a review from Tyriar April 1, 2021 19:20
@meganrogge meganrogge self-assigned this Apr 1, 2021
Copy link
Member

@Tyriar Tyriar left a comment

Choose a reason for hiding this comment

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

Should we call this _onContextLoss instead and pass the actual event over so it can be prevented if desired?

@Tyriar Tyriar added this to the 4.12.0 milestone Apr 1, 2021
@meganrogge meganrogge changed the title add onRecoverContext event add onContextLoss to webgl addon Apr 1, 2021
Copy link
Member

@Tyriar Tyriar left a comment

Choose a reason for hiding this comment

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

@Tyriar
Copy link
Member

Tyriar commented Apr 1, 2021

Also I added a bit to the readme on handling context loss, improvements welcome 🙂

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Webgl: Handle context loss when there are too many contexts
2 participants