Ejemplo n.º 1
0
 def close(self):
     # This seems to cause problems, so we rely
     # on destroying the context to clear textures and fbos...
     # if self.offscreen_fbo is not None:
     #    glDeleteFramebuffers(1, [self.offscreen_fbo])
     #    self.offscreen_fbo = None
     # if self.textures is not None:
     #    glDeleteTextures(self.textures)
     #    self.textures = None
     if self._backing:
         self._backing.destroy()
     GTK2WindowBacking.close(self)
     self.glconfig = None
Ejemplo n.º 2
0
 def close(self):
     #This seems to cause problems, so we rely
     #on destroying the context to clear textures and fbos...
     #if self.offscreen_fbo is not None:
     #    glDeleteFramebuffers(1, [self.offscreen_fbo])
     #    self.offscreen_fbo = None
     #if self.textures is not None:
     #    glDeleteTextures(self.textures)
     #    self.textures = None
     if self._backing:
         self._backing.destroy()
     GTK2WindowBacking.close(self)
     self.glconfig = None
Ejemplo n.º 3
0
 def close(self):
     if self._backing:
         self._backing.destroy()
     GTK2WindowBacking.close(self)
     self.glconfig = None
Ejemplo n.º 4
0
 def close(self):
     if self._backing:
         self._backing.destroy()
     GTK2WindowBacking.close(self)
     self.glconfig = None