glDeleteBuffers is smart enough to ignore if the index is 0