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

macos/opengl: lock context while rendering to stop resize crashes #2100

Merged
merged 2 commits into from
Aug 15, 2024

Conversation

qwerasd205
Copy link
Collaborator

A kinda hacky fix to a crash caused by accessing the GL context from multiple threads during window resize operations. This is simply to allow somewhat sane testing + development of the OpenGL renderer while on macOS.

This is hacky code and there's probably a subtly better way to do it, feel free to change before merge :p

@mitchellh mitchellh merged commit 78e9e9f into ghostty-org:main Aug 15, 2024
2 of 3 checks passed
@mitchellh mitchellh deleted the mac-opengl branch August 15, 2024 21:25
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.

2 participants