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
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
def close(self): if self._backing: self._backing.destroy() GTK2WindowBacking.close(self) self.glconfig = None