class_docstr: Generic GL object that represents an object on the GPU.
  
  When a GLObject is instantiated, it is associated with the currently
  active Canvas, or with the next Canvas to be created if there is no current Canvas
code: def __del__(self):
      # You never know when this is goint to happen. The window might
      # already be closed and no OpenGL context might be available.
      # However, since we are using GLIR queue, this does not matter!
      # If the command gets transported to the canvas, that is great,
      # if not, this probably means that the canvas no longer exists.
      self.delete()
  
file_path: vispy/vispy/gloo/globject.py
imports: from .glir import GlirQueue
label_desc: Use image node_id 2 for calling the GLObject obj's underlying member method code with example usage: obj.__del__() without return types