Skip to content

Commit

Permalink
fix glfw shutdown
Browse files Browse the repository at this point in the history
  • Loading branch information
almarklein committed Dec 6, 2024
1 parent 759c931 commit e3c9650
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion rendercanvas/glfw.py
Original file line number Diff line number Diff line change
Expand Up @@ -335,7 +335,8 @@ def _rc_close(self):
if not glfw._rc_alive:
# May not always be able to close the proper way on system exit
self._window = None
elif self._window is not None:
return
if self._window is not None:
glfw.destroy_window(self._window) # not just glfw.hide_window
self._window = None
self.submit_event({"event_type": "close"})
Expand Down

0 comments on commit e3c9650

Please sign in to comment.