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

WebCanvas: Handle WebGL context loss #37

Open
QuantumBadger opened this issue Dec 4, 2021 · 2 comments
Open

WebCanvas: Handle WebGL context loss #37

QuantumBadger opened this issue Dec 4, 2021 · 2 comments

Comments

@QuantumBadger
Copy link
Owner

In the upcoming WebGL support, we don't handle the situation where the WebGL context is lost and restored. While it might be best to detect this externally and restart the app, we could handle this internally by saving all the textures in RAM and re-uploading them when the context is restored, as well as re-initialising all the shaders/etc.

@Revertron
Copy link
Contributor

Is it too complex to be configurable?

@QuantumBadger
Copy link
Owner Author

Is it too complex to be configurable?

It'll probably have to be configurable (and off by default) if it's added after the initial release, to avoid conflicting with any user-provided handling.

@QuantumBadger QuantumBadger changed the title Handle WebGL context loss WebCanvas: Handle WebGL context loss Dec 5, 2021
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

No branches or pull requests

2 participants