Commit 87b57175 authored by Guillaume Seguin's avatar Guillaume Seguin

Cleanup and fix wxGLPanel.Destroy()

parent b66db7d6
......@@ -82,10 +82,10 @@ class wxGLPanel(wx.Panel):
event.Skip()
def Destroy(self):
#clean up the pyglet OpenGL context
# clean up the pyglet OpenGL context
self.pygletcontext.destroy()
#call the super method
super(wx.Panel, self).Destroy()
# call the super method
super(wxGLPanel, self).Destroy()
#==========================================================================
# GLFrame OpenGL Event Handlers
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment