title: Are WebGL objects garbage collected?
body: <p>In JavaScript memory that I allocated (e.g. an ArrayBuffer) gets freed up when I don't have any reference to it anymore by the GC as I understood that right?</p>
  
  <p>WebGL objects like Buffers or Textures are associated with a memory block on the GPU as allocated by <code>gl.bufferData()</code> or <code>gl.textureImage2D()</code>.</p>
  
  <p>I'm wondering: if I give up my last reference to a WebGLTexture or WebGLBuffer object, does it get garbage collected with its GPU memory block freed by the JavaScript VM automatically?</p>