Skip to content

add onContextLoss to webgl addon#3276

Merged
meganrogge merged 6 commits intoxtermjs:masterfrom
meganrogge:webgl
Apr 2, 2021
Merged

add onContextLoss to webgl addon#3276
meganrogge merged 6 commits intoxtermjs:masterfrom
meganrogge:webgl

Conversation

@meganrogge
Copy link
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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