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

Recover from OpenGL context loss #2480

Open
DemiMarie opened this issue Oct 2, 2024 · 2 comments
Open

Recover from OpenGL context loss #2480

DemiMarie opened this issue Oct 2, 2024 · 2 comments

Comments

@DemiMarie
Copy link

OpenGL contexts can be lost for a variety of reasons, of which perhaps the most common is the GPU and its driver failing to limit the impact of faults to a single context. To prevent a buggy web page using WebGL from taking down the whole user session, it would be nice to use robust OpenGL contexts.

@kode54
Copy link
Contributor

kode54 commented Oct 2, 2024

#2458

It needs plumbing into every plugin that uses OpenGL, and even then, I never got it to work without crashing the whole compositor.

@DemiMarie
Copy link
Author

#2458

It needs plumbing into every plugin that uses OpenGL, and even then, I never got it to work without crashing the whole compositor.

See the last two comments — after a context loss, every pointer to an OpenGL resource should be cleared, at least for ones managed by wlroots.

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

No branches or pull requests

2 participants