def release(ctx, glos) -> None: """ Delete this query object. This is automatically called when the object is garbage collected. """ if gl.current_context is None: return for glo in glos: gl.glDeleteQueries(1, glo)
def __del__(self): gl.glDeleteQueries(1, self.occlusion_query) gl.glDeleteBuffers(1, self.vbo) gl.glDeleteVertexArrays(1, self.vao)