/** * Delete this VBO properly. * * @param gl The global openGL instance. */ public void delete(GL3 gl) { gl.glBindVertexArray(0); gl.glDeleteVertexArrays(1, this.vboPointer); gl.glDeleteBuffers(1, this.bufferPointer); }