mirror of
https://github.com/Farama-Foundation/Gymnasium.git
synced 2025-08-01 06:07:08 +00:00
Fix TypeError when closing rendering (#440)
This commit is contained in:
@@ -327,8 +327,8 @@ class WindowViewer(BaseRender):
|
|||||||
if self.window:
|
if self.window:
|
||||||
if glfw.get_current_context() == self.window:
|
if glfw.get_current_context() == self.window:
|
||||||
glfw.make_context_current(None)
|
glfw.make_context_current(None)
|
||||||
glfw.destroy_window(self.window)
|
glfw.destroy_window(self.window)
|
||||||
self.window = None
|
self.window = None
|
||||||
|
|
||||||
def __del__(self):
|
def __del__(self):
|
||||||
"""Eliminate all of the OpenGL glfw contexts and windows"""
|
"""Eliminate all of the OpenGL glfw contexts and windows"""
|
||||||
|
Reference in New Issue
Block a user