Skip to content

Instantly share code, notes, and snippets.

@amalgamatedclyde
Created March 18, 2014 14:39
Show Gist options
  • Save amalgamatedclyde/9621360 to your computer and use it in GitHub Desktop.
Save amalgamatedclyde/9621360 to your computer and use it in GitHub Desktop.
in this case: self.cb = Callback(self.setup_gl_context) There are 3 instances of Callback in memory and they all reference a list that keeps growing whenever the scene is updated
def setup_gl_context(self, *args):
#clear_buffer
glEnable(GL_DEPTH_TEST)
self.fbo.clear_buffer()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment