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

opengl exception handler function #1770

Open
totaam opened this issue Feb 17, 2018 · 3 comments
Open

opengl exception handler function #1770

totaam opened this issue Feb 17, 2018 · 3 comments
Labels
Milestone

Comments

@totaam
Copy link
Collaborator

totaam commented Feb 17, 2018

Follow up from #1769: register a callback function on the opengl context object to reset the context when we encounter an error, so that later screen updates will succeed.

@totaam
Copy link
Collaborator Author

totaam commented Jul 29, 2019

Not easy.
There are two parts: the window backing context and the underlying opengl context (ie: GLX context).
We can't re-initialize the latter without also re-initializing the former.
Another problem is that some paint functions already catch and handle exceptions, so the code would need to be added to each one of those rather than doing it generically in the gl-context object.

@totaam
Copy link
Collaborator Author

totaam commented Jul 29, 2019

2019-07-29 18:12:10: antoine uploaded file gl-reinit.patch (3.7 KiB)

example glcontext re-init handler

@totaam totaam added this to the 5.0 milestone Jan 23, 2021
@totaam
Copy link
Collaborator Author

totaam commented Jan 23, 2021

See also #2467

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

No branches or pull requests

1 participant