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

Make it possible to releaseContext after morph::Visual construction #294

Merged
merged 4 commits into from
Nov 28, 2024

Conversation

sebjameswml
Copy link
Collaborator

Maybe need to set a callback in VisualTextModel so it can set context, like VisualModel can. When VisualTextModel is used to create a new text label, the OpenGL context must be in place. Can't close this PR until that is fixed.

@sebjameswml
Copy link
Collaborator Author

The second commit should sort it. All the examples ran for me

@sebjameswml sebjameswml reopened this Nov 27, 2024
@sebjameswml sebjameswml changed the title Some programs work, but those that call addLabel still fail Make it possible to releaseContext after morph::Visual construction Nov 27, 2024
@sebjameswml
Copy link
Collaborator Author

Happy with this now - all seems safe.

@sebjameswml sebjameswml merged commit e6159ae into main Nov 28, 2024
6 checks passed
@sebjameswml sebjameswml deleted the dev/release_context_after_Visual_destructor branch November 28, 2024 12:59
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