Fix TypeError when closing rendering (#440)

This commit is contained in:
sonelu
2023-04-08 13:33:34 +01:00
committed by GitHub
parent 3923e35a18
commit a910eae4ce

View File

@@ -327,8 +327,8 @@ class WindowViewer(BaseRender):
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"""