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

Fix GLMakie embedding support #4848

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

JamesWrigley
Copy link
Contributor

Description

An exit handler was added to GLMakie in #4782 to ensure that all OpenGL resources are cleaned up, which will eventually call close(::Screen) and destroy!(::Screen), which previously assumed that GLMakie owned screen.glscreen and would try calling GLFW functions on it. Now they will only do GLFW things if GLMakie owns the screen window. Also documented that embedders will need to implement destroy!(::MyWindow).

Relevant prior PR: #4073

I don't have the bandwidth for it right now, but in the future I'd like to try writing some unit tests for embedding support.

Type of change

Delete options that do not apply:

  • Bug fix (non-breaking change which fixes an issue)

Checklist

  • Added an entry in CHANGELOG.md (for new features and breaking changes)
  • Added or changed relevant sections in the documentation
  • Added unit tests for new algorithms, conversion methods, etc.
  • Added reference image tests for new plotting functions, recipes, visual options, etc.

Sorry, something went wrong.

Verified

This commit was signed with the committer’s verified signature. The key has expired.
JamesWrigley James Wrigley
An exit handler was added to GLMakie in
MakieOrg#4782 to ensure that all OpenGL
resources are cleaned up, which will eventually call `close(::Screen)` and
`destroy!(::Screen)`, which previously assumed that GLMakie owned
`screen.glscreen` and would try calling GLFW functions on it. Now they will only
do GLFW things if GLMakie owns the screen window. Also documented that embedders
will need to implement `destroy!(::MyWindow)`.
@JamesWrigley
Copy link
Contributor Author

I believe the benchmark failure is unrelated, maybe it's because I'm making the PR from a fork?

@asinghvi17
Copy link
Member

Yep, benchmark CI doesn't run on PRs from forks unfortunately, because it (currently) has to write the image to a Gist.

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

Successfully merging this pull request may close these issues.

None yet

2 participants