Ah... nevermind. I figured out I needed to create wxPython's GLCanvas
differently in the __init__ function of the GLPanel control. I save the
context into a class variable and then use that for all future controls
that I create.
<code>
# Create context
if GLPanel.wxcontext is None:
GLPanel.pygletcontext = gl.Context(gl.current_context)
self.canvas = glcanvas.GLCanvas(self, attribList = attribList)
GLPanel.wxcontext = self.canvas.GetContext()
else:
self.canvas = glcanvas.GLCanvasWithContext(self, shared =
GLPanel.wxcontext, attribList = attribList)
</code>
>
>
>
>
>
--
You received this message because you are subscribed to the Google Groups
"pyglet-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/pyglet-users?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.