flushBufferData(buffer) {
    const gl = this.gl_;
    this.bindBuffer(buffer);
    gl.bufferData(buffer.getType(), buffer.getArray(), buffer.getUsage());
  }
Update the data contained in the buffer array; this is required for the
new data to be rendered
@param {import("./Buffer").default} buffer Buffer.