Skip to content

Commit

Permalink
Merge pull request #177 from yihleego/bugfix-crash
Browse files Browse the repository at this point in the history
Fix crash when exporting videos using OSMesa
  • Loading branch information
hjessmith authored Jun 21, 2023
2 parents 1326ae0 + 6f24681 commit 695ab11
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion animated_drawings/view/mesa_view.py
Original file line number Diff line number Diff line change
Expand Up @@ -140,4 +140,5 @@ def clear_window(self) -> None:
GL.glClear(GL.GL_COLOR_BUFFER_BIT | GL.GL_DEPTH_BUFFER_BIT) # type: ignore

def cleanup(self) -> None:
""" No need to destroy a window, as none was created. """
""" Destroy the context when it is finished. """
osmesa.OSMesaDestroyContext(self.ctx)

0 comments on commit 695ab11

Please sign in to comment.