void dispose()

Call the dispose method to release memory allocated by WebGL.

Source

void dispose() {

  if (_renderbuffer != null) _renderingContext.deleteRenderbuffer(_renderbuffer);

  _contextIdentifier = -1;
  _renderbuffer = null;
}