Modify glDeleteBuffers changes per azakai's comments.