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 context lost/restore handling #10173

Merged
merged 25 commits into from
Apr 12, 2021
Merged

Fix context lost/restore handling #10173

merged 25 commits into from
Apr 12, 2021

Conversation

Popov72
Copy link
Contributor

@Popov72 Popov72 commented Apr 11, 2021

I havec checked the changes by simulating a context lost/restore for about 200 PGs (from the validation tests - all ok), it's in better shape than before the PR ;)

For the record, the code to simulate a context lost/restore in WebGL:

var loseContext = engine._gl.getExtension('WEBGL_lose_context');
window.loseC = () => loseContext.loseContext();
window.restoreC = () => loseContext.restoreContext();

Use loseC() to simulate a context lost and restoreC() to simulate a restore.

Fix #10163

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 lost context autorecover
2 participants