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

mac-opengl render: proper init and exit (fixes issue #1080) #1081

Closed
wants to merge 2 commits into from

Conversation

svantana
Copy link
Contributor

@svantana svantana commented Apr 3, 2024

The clearCurrentContext solves issue #1080. It is also apparently an accepted solution to various mac+opengl issues on SO, for example:

https://stackoverflow.com/questions/21798018/nsopenglcontext-destroying-textures-of-another-context

Most UI repos out there seem to start render calls with makeCurrentContext and end with clearCurrentContext. That is what I had to go on since Apple's docs don't say why/when it should be used.

The addObserver solves an issue in FL Studio-mac where if a complex iPlug2 gui is opened and closed really quickly, it would crash the FL Studio renderer. Same here, no docs do go on, but it looks like something people have learned is good to do.

@olilarkin
Copy link
Member

superseded by #1097

@olilarkin olilarkin closed this May 19, 2024
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.

None yet

2 participants