Fixed bugs with VBO and VAO handling when buffer content change.