You should use setVerticesData instead of updateVerticesData, which only works if the buffer has been created as updatable in the first place.
You should use setVerticesData instead of updateVerticesData, which only works if the buffer has been created as updatable in the first place.