Skip to content

Conversation

almarklein
Copy link
Member

@almarklein almarklein commented Apr 7, 2025

Ref pygfx/pygfx#642

  • Replace calls to ._rc_close() with .close()`
  • In close() do additional cleanup for the canvas, because these can hold onto (wgpu) resources:
    • The draw function.
    • The canvas context.
    • The event handlers (sanity check; likely already happened).
  • Delay glfw termination so it happens after the wgpu surface is deleted.

@almarklein almarklein merged commit bc435e4 into main Apr 7, 2025
13 checks passed
@almarklein almarklein deleted the cleanup branch April 7, 2025 10:43
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