PDA

View Full Version : Binding a new vao to already bound buffer



mobeen
01-03-2011, 09:57 PM
Hi all,
I read in the book (opengl superbible 5th ed.) on page 491


Note, though that while the buffer binding associated with the vertex attribute is stored in the VAO, binding a new VAO does not change the current buffer bindings. That is, the actual state of the currently bound buffers is not stored in the VAO.

Does this mean that if I have vbo[0] bound to vao[0] GL_ARRAY_BUFFER target, if i bind vao[1], the GL_ARRAY_BUFFER for vao[1] will still point to vbo[0]?

Alfonse Reinheart
01-03-2011, 10:08 PM
Read. (http://www.opengl.org/wiki/Vertex_Array_Object#VAO_Functions)