core: Improve build_vbo method