Commit c3219495 authored by Guillaume Seguin's avatar Guillaume Seguin

Fix Pyglet 1.2 compatibility. Probably not the right one, but it works.

parent 47d0b016
...@@ -115,6 +115,7 @@ class wxGLPanel(wx.Panel): ...@@ -115,6 +115,7 @@ class wxGLPanel(wx.Panel):
self.pmat = (GLdouble * 16)() self.pmat = (GLdouble * 16)()
self.mvmat = (GLdouble * 16)() self.mvmat = (GLdouble * 16)()
self.pygletcontext = gl.Context(gl.current_context) self.pygletcontext = gl.Context(gl.current_context)
self.pygletcontext.canvas = self
self.pygletcontext.set_current() self.pygletcontext.set_current()
self.dist = 1000 self.dist = 1000
self.vpmat = None self.vpmat = None
......
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