Skip to content

Commit

Permalink
Fix TypeError when closing rendering (#440)
Browse files Browse the repository at this point in the history
  • Loading branch information
sonelu authored Apr 8, 2023
1 parent 3923e35 commit a910eae
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions gymnasium/envs/mujoco/mujoco_rendering.py
Original file line number Diff line number Diff line change
Expand Up @@ -327,8 +327,8 @@ def free(self):
if self.window:
if glfw.get_current_context() == self.window:
glfw.make_context_current(None)
glfw.destroy_window(self.window)
self.window = None
glfw.destroy_window(self.window)
self.window = None

def __del__(self):
"""Eliminate all of the OpenGL glfw contexts and windows"""
Expand Down

0 comments on commit a910eae

Please sign in to comment.