I created VBO (vertex buffer object) and VAO (vertex array objects) and did this:
glBindVertexArray(vao); glBindBuffer(GL_ARRAY_BUFFER, vbo); glBufferData(...); glVertexAttribPointer(...); glEnableVertexAttribArray(0); glBindVertexArray(0);
Is it possible to remove vbo after that and then do it with vao if everything is okay?
I know that buffers are bound to vao , so I guess I can.
The problem is that if I delete the buffer on my computer (Intel graphics), it works fine (everything displays correctly), but nothing appears on my other computer (AMD).
What could be the problem?
(By the way, if I do not delete the buffers, the program works both on my computer and on my friend)
c ++ opengl
Johnmiz
source share