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

Improve handling of errors when setting up rendering thread #131

Merged
merged 9 commits into from
Apr 30, 2022

Conversation

fjvallarino
Copy link
Owner

Monomer uses a secondary thread for rendering to show continuous content updates when the user resizes the window. In some cases, so far only on Linux, the driver will fail when switching the active GL context with this error: "Unable to make GL context current".

With this PR, the library will attempt to fall back to using the main thread for rendering when the referenced error occurs. Additionally, it will not try to set up multi-threaded rendering if the runtime is single-threaded (missing the -threaded flag).

Mentioned in:

@fjvallarino fjvallarino merged commit dbb603a into main Apr 30, 2022
@fjvallarino fjvallarino deleted the fix/gl-make-current branch April 30, 2022 14:00
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.

1 participant